MyButton.outlinedDanger constructor

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

Creates an outlined MyButton with error color border for warnings.

Implementation

factory MyButton.outlinedDanger({
  Key? key,
  String? label,
  TextStyle? labelStyle,
  IconData? icon,
  Color? iconColor,
  double? stroke,
  VoidCallback? onPressed,
  bool loading = false,
  bool disabled = false,
  bool fullWidth = true,
}) =>
    MyButton._(
      key: key,
      label: label,
      labelStyle: labelStyle,
      icon: icon,
      iconColor: iconColor,
      stroke: stroke,
      onPressed: onPressed,
      variant: _Variant.outlinedDanger,
      loading: loading,
      disabled: disabled,
      fullWidth: fullWidth,
    );