tryParse static method
Parses a time-of-day string, returning null when the text is invalid.
Implementation
static FdcTime? tryParse(String text) {
try {
return parse(text);
} on FormatException {
return null;
// ignore: avoid_catching_errors
} on RangeError {
return null;
}
}