MyButton.dangerOutlined constructor

MyButton.dangerOutlined({
  1. Key? key,
  2. required String title,
  3. IconData? icon,
  4. required VoidCallback? onClick,
  5. bool loading = false,
  6. bool disabled = false,
})

Implementation

MyButton.dangerOutlined({
  super.key,
  required String title,
  IconData? icon,
  required VoidCallback? onClick,
  bool loading = false,
  bool disabled = false,
})  : _type = _ButtonType.dangerOutlined,
      super.tonal(
          child: loading ? _loader() : _foreground(title, icon), onPressed: disabled || loading ? null : onClick);