Widget.chip constructor Null safety

const Widget.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. @Default(Clip.none) Clip clipBehavior,
  13. @Default(false) 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 Widget.chip({
  Key? key,
  Widget? avatar,
  required Widget label,
  TextStyle? labelStyle,
  EdgeInsets? labelPadding,
  Widget? deleteIcon,
  Callback? onDeleted,
  Color? deleteIconColor,
  String? deleteButtonTooltipMessage,
  BorderSide? side,
  ShapeBorder? shape,
  @Default(Clip.none) Clip clipBehavior,
  @Default(false) bool autofocus,
  Color? backgroundColor,
  EdgeInsets? padding,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? materialTapTargetSize,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
}) = Chip;