tryParseUtc method
- String inputString
Given user input, attempt to parse the inputString into the anticipated
format, treating it as being in UTC.
If inputString does not match our format, returns null.
Implementation
DateTime? tryParseUtc(String inputString) {
try {
return parseUtc(inputString);
} on FormatException {
return null;
}
}