toCupertinoDialog<T> method
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,
);