const
MaterialButton(- {Key? key,
- required Callback? onPressed,
- Callback? onLongPress,
- MouseCursor? mouseCursor,
- Color? textColor,
- Color? disabledTextColor,
- Color? color,
- Color? disabledColor,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Brightness? colorBrightness,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- double? disabledElevation,
- EdgeInsets? padding,
- VisualDensity? visualDensity,
- ShapeBorder? shape,
- Clip clipBehavior,
- bool autofocus,
- MaterialTapTargetSize? materialTapTargetSize,
- Duration? animationDuration,
- double? minWidth,
- double? height,
- bool enableFeedback,
- 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;