IconicaAlertDialog.yesOrNo constructor

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

Implementation

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