MyButton.text constructor
MyButton.text({})
Creates a text MyButton with no background or border.
Implementation
factory MyButton.text({
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.text,
loading: loading,
disabled: disabled,
fullWidth: fullWidth,
);