platformName property

String get platformName

Gets the platform name

Implementation

static String get platformName {
  if (kIsWeb) return 'Web';
  if (io.Platform.isAndroid) return 'Android';
  if (io.Platform.isIOS) return 'iOS';
  if (io.Platform.isWindows) return 'Windows';
  if (io.Platform.isMacOS) return 'macOS';
  if (io.Platform.isLinux) return 'Linux';
  return 'Unknown';
}