showCupertinoDialog<T> method

Future<T?> showCupertinoDialog<T>({
  1. required WidgetBuilder builder,
  2. bool useRootNavigator = true,
  3. RouteSettings? routeSettings,
})

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 (the dialog is not dismissible with a tap on the barrier).

Equivalent to cupertino.showCupertinoDialog.

Implementation

Future<T?> showCupertinoDialog<T>({
  required cupertino.WidgetBuilder builder,
  bool useRootNavigator: true,
  cupertino.RouteSettings? routeSettings,
}) {
  return cupertino.showCupertinoDialog<T>(
    context: this,
    builder: builder,
    useRootNavigator: useRootNavigator,
    routeSettings: routeSettings,
  );
}