IconicaAlertDialog.yesOrNoIcon constructor

IconicaAlertDialog.yesOrNoIcon(
  1. {required String title,
  2. required String body,
  3. required Widget icon,
  4. required VoidCallback onYes,
  5. required VoidCallback onNo,
  6. bool focusYes = true,
  7. bool otherSecondary = false,
  8. bool? closeButton,
  9. ButtonCallback? primaryButton,
  10. ButtonCallback? secondaryButton,
  11. IconButtonCallback? iconButton}
)

Implementation

factory IconicaAlertDialog.yesOrNoIcon({
  required String title,
  required String body,
  required Widget icon,
  required VoidCallback onYes,
  required VoidCallback onNo,
  bool focusYes = true,
  bool otherSecondary = false,
  bool? closeButton,
  ButtonCallback? primaryButton,
  ButtonCallback? secondaryButton,
  IconButtonCallback? iconButton,
}) =>
    IconicaAlertDialog.icon(
      primaryButton: primaryButton,
      secondaryButton: secondaryButton,
      iconButton: iconButton,
      closeButton: closeButton,
      title: title,
      body: body,
      icon: icon,
      buttons: _getYesNoDialogButtons(focusYes, otherSecondary, onYes, onNo),
    );