toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case CreateDialogChatErrorCode.blocked:
      return 'err_blocked'.l10n;
    case CreateDialogChatErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
    case CreateDialogChatErrorCode.unknownUser:
      return 'err_unknown_user'.l10n;
    case CreateDialogChatErrorCode.useMonolog:
      return 'err_use_monolog'.l10n;
  }
}