MyButton.text constructor

MyButton.text({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. IconData? icon,
  5. Color? iconColor,
  6. VoidCallback? onPressed,
  7. bool loading = false,
  8. bool disabled = false,
  9. bool fullWidth = true,
})

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,
    );