isCupertino function

bool isCupertino (BuildContext context)

Implementation

bool isCupertino(BuildContext context) {
  switch (Theme.of(context).platform) {
    case TargetPlatform.android:
    case TargetPlatform.fuchsia:
      return false;
    case TargetPlatform.iOS:
      return true;
    default:
      return false;
  }
}