toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case StartChatCallErrorCode.blocked:
      return 'err_blocked'.l10n;
    case StartChatCallErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case StartChatCallErrorCode.unknownUser:
      return 'err_unknown_user'.l10n;
    case StartChatCallErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}