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