MaterialButton constructor Null safety

const MaterialButton(
  1. {Key? key,
  2. required Callback? onPressed,
  3. Callback? onLongPress,
  4. MouseCursor? mouseCursor,
  5. Color? textColor,
  6. Color? disabledTextColor,
  7. Color? color,
  8. Color? disabledColor,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. Color? highlightColor,
  12. Color? splashColor,
  13. Brightness? colorBrightness,
  14. double? elevation,
  15. double? focusElevation,
  16. double? hoverElevation,
  17. double? highlightElevation,
  18. double? disabledElevation,
  19. EdgeInsets? padding,
  20. VisualDensity? visualDensity,
  21. ShapeBorder? shape,
  22. Clip clipBehavior,
  23. bool autofocus,
  24. MaterialTapTargetSize? materialTapTargetSize,
  25. Duration? animationDuration,
  26. double? minWidth,
  27. double? height,
  28. bool enableFeedback,
  29. Widget? child}
)

Implementation

const factory MaterialButton(
    {final Key? key,
    required final Callback? onPressed,
    final Callback? onLongPress,
    final MouseCursor? mouseCursor,
    final Color? textColor,
    final Color? disabledTextColor,
    final Color? color,
    final Color? disabledColor,
    final Color? focusColor,
    final Color? hoverColor,
    final Color? highlightColor,
    final Color? splashColor,
    final Brightness? colorBrightness,
    final double? elevation,
    final double? focusElevation,
    final double? hoverElevation,
    final double? highlightElevation,
    final double? disabledElevation,
    final EdgeInsets? padding,
    final VisualDensity? visualDensity,
    final ShapeBorder? shape,
    final Clip clipBehavior,
    final bool autofocus,
    final MaterialTapTargetSize? materialTapTargetSize,
    final Duration? animationDuration,
    final double? minWidth,
    final double? height,
    final bool enableFeedback,
    final Widget? child}) = _$MaterialButton;