FloatingActionButton constructor Null safety

const 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. bool mini,
  17. ShapeBorder? shape,
  18. Clip clipBehavior,
  19. bool autofocus,
  20. MaterialTapTargetSize? materialTapTargetSize,
  21. bool isExtended,
  22. bool? enableFeedback}
)

Implementation

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