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