os property

OS os

The current OS of the system, of those supported by RunnableScript

Implementation

OS get os {
  if (Platform.isWindows) {
    return OS.windows;
  } else if (Platform.isMacOS) {
    return OS.macos;
  } else if (Platform.isLinux) {
    return OS.linux;
  }
  throw StateError('Unsupported OS: ${Platform.operatingSystem}');
  // return OS.unknown;
}