UserLogin constructor

UserLogin(
  1. String value
)

Implementation

UserLogin(String value) : super(value.trim().toLowerCase()) {
  if (val.isNumericOnly) {
    throw const FormatException('Can not contain only numbers');
  } else if (!_regExp.hasMatch(val)) {
    throw FormatException('Does not match validation RegExp: `$val`');
  }
}