toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case CreateChatDirectLinkErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
    case CreateChatDirectLinkErrorCode.occupied:
      return 'err_chat_direct_link_occupied'.l10n;
    case CreateChatDirectLinkErrorCode.notGroup:
      return 'err_contact_not_group'.l10n;
    case CreateChatDirectLinkErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
  }
}