toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case ValidateConfirmationCodeErrorCode.wrongCode:
      return 'err_wrong_code'.l10n;
    case ValidateConfirmationCodeErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}