toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case ToggleChatMuteErrorCode.tooShort:
      return 'err_too_short'.l10n;
    case ToggleChatMuteErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case ToggleChatMuteErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
    case ToggleChatMuteErrorCode.monolog:
      return 'err_monolog'.l10n;
  }
}