showDefaultModalBottom method

void showDefaultModalBottom({
  1. String? illustration,
  2. String? title,
  3. String? message,
  4. String? buttonTitle,
  5. dynamic onPressed()?,
  6. dynamic onComplete()?,
  7. dynamic onBackButton()?,
  8. dynamic onCloseButton()?,
  9. bool isDismissible = true,
  10. bool showCloseButton = false,
})

Implementation

void showDefaultModalBottom({
  String? illustration,
  String? title,
  String? message,
  String? buttonTitle,
  Function()? onPressed,
  Function()? onComplete,
  Function()? onBackButton,
  Function()? onCloseButton,
  bool isDismissible = true,
  bool showCloseButton = false,
}) {
  showModalBottom(
    isDismissible: isDismissible,
    content: PopScope(
      onPopInvoked: onBackButton?.call(),
      child: DefaultModal(
        illustration: illustration,
        title: title,
        message: message,
        buttonTitle: buttonTitle,
        onPressed: onPressed,
        showCloseButton: showCloseButton,
        onCloseButton: onCloseButton,
      ),
    ),
  );
}