parseNotNegativeTime static method
Implementation
static int? parseNotNegativeTime(String input) {
if (_cachedParsedTime.containsKey(input)) {
return _cachedParsedTime[input];
}
int? milliseconds = _parseTimeValue(input);
if (milliseconds != null && milliseconds < 0) {
milliseconds = 0;
}
return _cachedParsedTime[input] = milliseconds;
}