isDate property

bool get isDate

Determines whether a given string represents a valid date. Dates must be in the format "YYYY-MM-DD".

Implementation

bool get isDate => _hasMatch(this, r'^\d{4}-\d{2}-\d{2}$');