isMacOSVersionInRange static method
Checks if macOS version is in the specified range.
Implementation
static bool isMacOSVersionInRange(int min, [int? max]) {
if (!Platform.isMacOS) return false;
ensureInitialized();
final version = _cachedMacOSVersion ?? 0;
if (max != null) {
return version >= min && version <= max;
}
return version >= min;
}