osName property
String
get
osName
The current OS name.
Implementation
static String get osName {
if (Platform.isLinux) {
return 'linux';
} else if (Platform.isMacOS) {
return 'macos';
} else if (Platform.isWindows) {
return 'windows';
} else {
return '';
}
}