IconicaAlertDialog.yesOrNoIcon constructor
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}
)
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),
);