MyButton.filled constructor
MyButton.filled({})
Creates a filled MyButton with primary color background.
Implementation
factory MyButton.filled({
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.filled,
loading: loading,
disabled: disabled,
fullWidth: fullWidth,
);