UserName constructor
- String value
Implementation
UserName(String value) : super(value.trim()) {
if (!_regExp.hasMatch(val)) {
throw FormatException('Does not match validation RegExp: `$val`');
}
}
UserName(String value) : super(value.trim()) {
if (!_regExp.hasMatch(val)) {
throw FormatException('Does not match validation RegExp: `$val`');
}
}