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