BottomAlertDialog.yesOrNo constructor

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

Implementation

factory BottomAlertDialog.yesOrNo({
  required Widget title,
  required Widget body,
  required VoidCallback onYes,
  required VoidCallback onNo,
  bool focusYes = true,
  bool otherSecondary = false,
  bool? closeButton,
}) =>
    BottomAlertDialog.multiButton(
      closeButton: closeButton,
      title: title,
      body: body,
      buttons: const [],
      actions: _getYesNoDialogButtons(focusYes, otherSecondary, onYes, onNo),
    );