localizedString method

String? localizedString()

Returns text representation of a current value.

Implementation

String? localizedString() {
  switch (this) {
    case Presence.present:
      return 'label_presence_present'.l10n;
    case Presence.away:
      return 'label_presence_away'.l10n;
    case Presence.artemisUnknown:
      return null;
  }
}