showCCupertinoModalPopup<T> function

Future<T?> showCCupertinoModalPopup<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. Cancellable? cancellable,
  4. ImageFilter? filter,
  5. Color barrierColor = kCupertinoModalBarrierColor,
  6. bool barrierDismissible = true,
  7. bool useRootNavigator = true,
  8. bool semanticsDismissible = false,
  9. RouteSettings? routeSettings,
  10. Offset? anchorPoint,
})

Implementation

Future<T?> showCCupertinoModalPopup<T>({
  required BuildContext context,
  required WidgetBuilder builder,
  Cancellable? cancellable,
  ImageFilter? filter,
  Color barrierColor = kCupertinoModalBarrierColor,
  bool barrierDismissible = true,
  bool useRootNavigator = true,
  bool semanticsDismissible = false,
  RouteSettings? routeSettings,
  Offset? anchorPoint,
}) {
  final NavigatorState navigator =
      Navigator.of(context, rootNavigator: useRootNavigator);

  final route = CupertinoModalPopupRoute<T>(
    builder: builder,
    filter: filter,
    barrierColor: CupertinoDynamicColor.resolve(barrierColor, context),
    barrierDismissible: barrierDismissible,
    semanticsDismissible: semanticsDismissible,
    settings: routeSettings,
    anchorPoint: anchorPoint,
  );
  return navigator.pushCancellableRoute(route, cancellable);
}