label property

String get label

Returns the platform identifier string.

Implementation

String get label {
  switch (this) {
    case Platform.android:
      return 'android';
    case Platform.ios:
      return 'ios';
    case Platform.web:
      return 'web';
    case Platform.windows:
      return 'windows';
    case Platform.macos:
      return 'macos';
    case Platform.linux:
      return 'linux';
  }
}