toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case RemoveChatCallMemberErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
    case RemoveChatCallMemberErrorCode.notGroup:
      return 'err_not_group'.l10n;
    case RemoveChatCallMemberErrorCode.notMember:
      return 'err_not_member'.l10n;
    case RemoveChatCallMemberErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
  }
}