isCupertinoAppAncestor static method

bool isCupertinoAppAncestor(
  1. BuildContext context
)

Implementation

static bool isCupertinoAppAncestor(BuildContext context) {
  return context.findAncestorWidgetOfExactType<CupertinoApp>() != null;
}