name property

String name

Implementation

String get name {
  switch (this) {
    case APIPlatformType.generic:
      return 'generic';
    case APIPlatformType.browser:
      return 'browser';
    case APIPlatformType.vm:
      return 'vm';
    case APIPlatformType.native:
      return 'native';
    case APIPlatformType.ios:
      return 'ios';
    case APIPlatformType.android:
      return 'android';
    case APIPlatformType.linux:
      return 'linux';
    case APIPlatformType.macos:
      return 'macos';
    case APIPlatformType.windows:
      return 'windows';
    default:
      throw StateError('Unknown: $this');
  }
}