os property
OS
get
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 ScriptStateError('Unsupported OS: ${Platform.operatingSystem}');
// return OS.unknown;
}