isIOSVersionInRange static method

bool isIOSVersionInRange(
  1. int min, [
  2. int? max
])

Checks if iOS version is in the specified range.

Implementation

static bool isIOSVersionInRange(int min, [int? max]) {
  if (!Platform.isIOS) return false;
  ensureInitialized();
  final version = _cachedIOSVersion ?? 0;
  if (max != null) {
    return version >= min && version <= max;
  }
  return version >= min;
}