MyButton constructor
MyButton({})
Creates a filled MyButton (default Material style).
Implementation
factory MyButton({
Key? key,
String? label,
TextStyle? labelStyle,
IconData? icon,
Color? iconColor,
VoidCallback? onPressed,
bool loading = false,
bool disabled = false,
bool fullWidth = true,
}) =>
MyButton._(
key: key,
label: label,
labelStyle: labelStyle,
icon: icon,
iconColor: iconColor,
onPressed: onPressed,
variant: _Variant.normal,
loading: loading,
disabled: disabled,
fullWidth: fullWidth,
);