platform property

String get platform

Implementation

static String get platform {
  if (Platform.isIOS) {
    return "ios";
  }

  if (Platform.isAndroid) {
    return "android";
  }

  if (Platform.isFuchsia) {
    return "fuchsia";
  }

  if (Platform.isLinux) {
    return "linux";
  }

  if (Platform.isMacOS) {
    return "macOs";
  }

  if (Platform.isWindows) {
    return "windows";
  }

  return "unknown";
}