tryParse static method
- String val
Parses the provided val as a UserEmail, if val meets the validation,
or returns null otherwise.
Implementation
static UserEmail? tryParse(String val) {
try {
return UserEmail(val);
} catch (_) {
return null;
}
}