platformName property
String
get
platformName
Implementation
static String get platformName {
if (isWeb) return "Web";
if (isAndroid) return "Android";
if (isIOS) return "IOS";
if (isWindows) return "Windows";
if (isLinux) return "Linux";
if (isMacOS) return "MacOS";
if (isFuchsia) return "Fuchsia";
return "Unknown";
}