currentPlatformName property

String currentPlatformName
final

Implementation

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