isCupertinoDesignPreferred function

bool isCupertinoDesignPreferred(
  1. BuildContext context
)

Determines whether Cupertino design should be used.

Implementation

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