isTime property

bool get isTime

Returns true if string is a time

Implementation

bool get isTime => this != null && Time.tryParse(this!) != null;