BottomAlertDialog.yesOrNoIcon constructor

BottomAlertDialog.yesOrNoIcon(
  1. {required Widget title,
  2. required Widget body,
  3. required Widget icon,
  4. required VoidCallback onYes,
  5. required VoidCallback onNo,
  6. bool focusYes = true,
  7. bool otherSecondary = false,
  8. bool? closeButton}
)

Implementation

factory BottomAlertDialog.yesOrNoIcon({
  required Widget title,
  required Widget body,
  required Widget icon,
  required VoidCallback onYes,
  required VoidCallback onNo,
  bool focusYes = true,
  bool otherSecondary = false,
  bool? closeButton,
}) =>
    BottomAlertDialog.icon(
      closeButton: closeButton,
      title: title,
      body: body,
      icon: icon,
      buttons: _getYesNoDialogButtons(focusYes, otherSecondary, onYes, onNo),
    );