toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case CreateUserErrorCode.occupied:
      return 'err_login_occupied'.l10n;
    case CreateUserErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}