currentPlatformKey top-level property

String? get currentPlatformKey

Returns the metadata key for the current OS, or null on unsupported platforms.

Implementation

String? get currentPlatformKey {
  if (Platform.isLinux) return linuxDefinitionKey;
  if (Platform.isMacOS) return macosDefinitionKey;
  if (Platform.isWindows) return windowsDefinitionKey;
  return null;
}