hasParentSheet static method

bool hasParentSheet(
  1. BuildContext context
)

Checks if a Cupertino sheet view exists in the widget tree above the current context.

Implementation

static bool hasParentSheet(BuildContext context) {
  return _CupertinoSheetScope.maybeOf(context) != null;
}