current static method

TargetOs current()

Implementation

static TargetOs current() {
  return switch (Platform.operatingSystem) {
    'linux' => TargetOs.linux,
    'macos' => TargetOs.macos,
    'windows' => TargetOs.windows,
    _ => throw UnsupportedError(
      'Unsupported platform: ${Platform.operatingSystem}',
    ),
  };
}