toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case UpdateChatContactNameErrorCode.unknownChatContact:
      return 'err_unknown_contact'.l10n;
    case UpdateChatContactNameErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}