toCupertinoDialog<T> method

Future<T?> toCupertinoDialog<T>(
  1. Widget dialog, {
  2. bool barrierDismissible = false,
  3. bool postponeToNextFrame = false,
})

Displays an iOS-style dialog above the current contents of the app, with iOS-style entrance and exit animations, modal barrier color, and modal barrier behavior

  • Required parameters:
  • dialog: (positional parameter) Widget to display.
  • optional parameters:
  • barrierDismissible: Whether dialog is dismissible when tapping outside it. Default value is false.

Equivalent to: showCupertinoDialog.

Implementation

Future<T?> toCupertinoDialog<T>(
  Widget dialog, {
  bool barrierDismissible = false,
  bool postponeToNextFrame = false,
}) =>
    _navigationBuilder.toCupertinoDialog<T>(
      dialog,
      barrierDismissible: barrierDismissible,
      postponeToNextFrame: postponeToNextFrame,
    );