isTime property
bool
get
isTime
Determines whether a given string represents a valid time. Times must be in the format "HH:MM" or "HH:MM:SS".
Implementation
bool get isTime => _hasMatch(this, r'^\d{2}:\d{2}(:\d{2})?$');