popupCupertinoModal<T> method

Future<T?> popupCupertinoModal<T>({
  1. WidgetBuilder? builder,
  2. CupertinoModalPopupOptions? options,
})

Implementation

Future<T?> popupCupertinoModal<T>({
  WidgetBuilder? builder,
  CupertinoModalPopupOptions? options,
}) {
  options = GlobalOptions().cupertinoModalPopupOptions.merge(options);
  return showCupertinoModalPopup(
      context: GlobalOptions().globalNavigatorKey.currentContext!,
      builder: builder ?? toWidgetBuilder,
      filter: options.filter,
      barrierColor: options.barrierColor,
      barrierDismissible: options.barrierDismissible,
      semanticsDismissible: options.semanticsDismissible,
      routeSettings: options.routeSettings,
      useRootNavigator: options.useRootNavigator,
      anchorPoint: options.anchorPoint);
}