isLegacyIOS static method

bool isLegacyIOS()

Checks if the current platform is a legacy iOS version. Returns true if the platform is a legacy iOS version, false otherwise.

Implementation

static bool isLegacyIOS() {
  if (!kIsWeb && Platform.isIOS) {
    final version = getPlatformVersion();
    final major = int.parse(version[0]);
    final minor = int.parse(version[1]);
    return major < 12 || (major == 12 && minor <= 4);
  }
  return false;
}