Widget.floatingActionButton constructor Null safety

const Widget.floatingActionButton(
  1. {Key? key,
  2. Widget? child,
  3. String? tooltip,
  4. Color? foregroundColor,
  5. Color? backgroundColor,
  6. Color? focusColor,
  7. Color? hoverColor,
  8. Color? splashColor,
  9. double? elevation,
  10. double? focusElevation,
  11. double? hoverElevation,
  12. double? highlightElevation,
  13. double? disabledElevation,
  14. required Callback? onPressed,
  15. MouseCursor? mouseCursor,
  16. @Default(false) bool mini,
  17. ShapeBorder? shape,
  18. @Default(Clip.none) Clip clipBehavior,
  19. @Default(false) bool autofocus,
  20. MaterialTapTargetSize? materialTapTargetSize,
  21. @Default(false) bool isExtended,
  22. bool? enableFeedback}
)

Implementation

const factory Widget.floatingActionButton({
  Key? key,
  Widget? child,
  String? tooltip,
  Color? foregroundColor,
  Color? backgroundColor,
  Color? focusColor,
  Color? hoverColor,
  Color? splashColor,
  double? elevation,
  double? focusElevation,
  double? hoverElevation,
  double? highlightElevation,
  double? disabledElevation,
  required Callback? onPressed,
  MouseCursor? mouseCursor,
  @Default(false) bool mini,
  ShapeBorder? shape,
  @Default(Clip.none) Clip clipBehavior,
  @Default(false) bool autofocus,
  MaterialTapTargetSize? materialTapTargetSize,
  @Default(false) bool isExtended,
  bool? enableFeedback,
}) = FloatingActionButton;