name property

String name

Implementation

String get name {
  switch (this) {
    case Device.Desktop:
      return "Desktop";
    case Device.Mobile:
      return "Mobile";
    case Device.SmartWatch:
      return "SmartWatch";
    case Device.TV:
      return "TV";
    case Device.Tablet:
      return "Tablet";
    case Device.IoT:
      return "IoT";
    default:
      return "";
  }
}