platform property
String
get
platform
Implementation
String get platform {
if (Platform.isAndroid) {
return 'android';
} else if (Platform.isFuchsia) {
return 'Fuchsia';
} else if (Platform.isIOS) {
return 'ios';
} else if (Platform.isLinux) {
return 'Linux';
} else if (Platform.isMacOS) {
return 'MacOS';
} else if (Platform.isWindows) {
return 'Window';
} else {
return 'Unknown';
}
}