currentPlatformName property

String currentPlatformName
final

Implementation

static final String currentPlatformName = () {
  if (Platformxx_c.isWeb) {
    return Platformxx_c.WebStr;
  } else if (Platformxx_c.isAndroid) {
    return Platformxx_c.AndroidStr;
  } else if (Platformxx_c.isIOS) {
    return Platformxx_c.IosStr;
  } else if (Platformxx_c.isWindows) {
    return Platformxx_c.WindowsStr;
  } else if (Platformxx_c.isLinux) {
    return Platformxx_c.LinuxStr;
  } else if (Platformxx_c.isMacOS) {
    return Platformxx_c.MacosStr;
  } else {
    // 错误
    return "";
  }
}();