localizedString method

String? localizedString([
  1. bool? fromMe
])

Returns text representation of a current value.

Implementation

String? localizedString([bool? fromMe]) {
  switch (this) {
    case ChatCallFinishReason.dropped:
      return fromMe == true
          ? 'label_chat_call_unanswered'.l10n
          : 'label_chat_call_missed'.l10n;
    case ChatCallFinishReason.declined:
      return 'label_chat_call_declined'.l10n;
    case ChatCallFinishReason.unanswered:
      return fromMe == true
          ? 'label_chat_call_unanswered'.l10n
          : 'label_chat_call_missed'.l10n;
    case ChatCallFinishReason.memberLeft:
      return 'label_chat_call_ended'.l10n;
    case ChatCallFinishReason.memberLostConnection:
      return 'label_chat_call_ended'.l10n;
    case ChatCallFinishReason.serverDecision:
      return 'label_chat_call_ended'.l10n;
    case ChatCallFinishReason.moved:
      return 'label_chat_call_moved'.l10n;
    case ChatCallFinishReason.artemisUnknown:
      return null;
  }
}