Chip constructor Null safety

const Chip(
  1. {Key? key,
  2. Widget? avatar,
  3. required Widget label,
  4. TextStyle? labelStyle,
  5. EdgeInsets? labelPadding,
  6. Widget? deleteIcon,
  7. Callback? onDeleted,
  8. Color? deleteIconColor,
  9. String? deleteButtonTooltipMessage,
  10. BorderSide? side,
  11. ShapeBorder? shape,
  12. Clip clipBehavior,
  13. bool autofocus,
  14. Color? backgroundColor,
  15. EdgeInsets? padding,
  16. VisualDensity? visualDensity,
  17. MaterialTapTargetSize? materialTapTargetSize,
  18. double? elevation,
  19. Color? shadowColor,
  20. Color? surfaceTintColor}
)

Implementation

const factory Chip(
    {final Key? key,
    final Widget? avatar,
    required final Widget label,
    final TextStyle? labelStyle,
    final EdgeInsets? labelPadding,
    final Widget? deleteIcon,
    final Callback? onDeleted,
    final Color? deleteIconColor,
    final String? deleteButtonTooltipMessage,
    final BorderSide? side,
    final ShapeBorder? shape,
    final Clip clipBehavior,
    final bool autofocus,
    final Color? backgroundColor,
    final EdgeInsets? padding,
    final VisualDensity? visualDensity,
    final MaterialTapTargetSize? materialTapTargetSize,
    final double? elevation,
    final Color? shadowColor,
    final Color? surfaceTintColor}) = _$Chip;