name property
String
name
Returns a string version of the platform
Implementation
static String get name {
switch (type) {
case PlatformType.android:
return 'android';
case PlatformType.ios:
return 'ios';
case PlatformType.web:
return 'web';
case PlatformType.macOS:
return 'macos';
case PlatformType.windows:
return 'windows';
case PlatformType.linux:
return 'linux';
case PlatformType.fuchsia:
return 'fuchsia';
}
}