isTime property

bool get isTime

Checks if the string is a valid time in 'HH:MM' format.

Implementation

bool get isTime => regex(r'^([01]\d|2[0-3]):([0-5]\d)$');