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