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