checkOsVersionInternal function

void checkOsVersionInternal(
  1. String apiName, {
  2. PlatformAvailability? iOS,
  3. PlatformAvailability? macOS,
})

Only for use by FFIgen bindings.

Implementation

void checkOsVersionInternal(
  String apiName, {
  PlatformAvailability? iOS,
  PlatformAvailability? macOS,
}) {
  if (Platform.isIOS) _checkOsVersionInternalImpl(apiName, 'iOS', iOS);
  if (Platform.isMacOS) _checkOsVersionInternalImpl(apiName, 'macOS', macOS);
}