displayName property

String get displayName

Returns a human-readable display name for this platform.

Implementation

String get displayName {
  switch (this) {
    case DevicePlatform.ios:
      return 'iOS';
    case DevicePlatform.android:
      return 'Android';
    case DevicePlatform.web:
      return 'Web';
    case DevicePlatform.macos:
      return 'macOS';
    case DevicePlatform.windows:
      return 'Windows';
    case DevicePlatform.linux:
      return 'Linux';
  }
}