BottomAlertDialog.singleButtonIcon constructor

BottomAlertDialog.singleButtonIcon(
  1. {required Widget title,
  2. required Widget body,
  3. required Widget icon,
  4. required String buttonText,
  5. required VoidCallback onPressed,
  6. ButtonType buttonType = ButtonType.tertiary,
  7. bool? closeButton}
)

Implementation

factory BottomAlertDialog.singleButtonIcon({
  required Widget title,
  required Widget body,
  required Widget icon,
  required String buttonText,
  required VoidCallback onPressed,
  ButtonType buttonType = ButtonType.tertiary,
  bool? closeButton,
}) =>
    BottomAlertDialog.icon(
      closeButton: closeButton,
      title: title,
      icon: icon,
      body: body,
      buttons: [
        BottomAlertDialogAction(
          text: buttonText,
          buttonType: buttonType,
          onPressed: onPressed,
        ),
      ],
    );