isDateTime property

bool get isDateTime

Determines whether a given string represents a valid DateTime in either UTC or ISO8601 format.

Implementation

bool get isDateTime =>
    _hasMatch(this, r'^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}.\d{3}Z?$');