isDate property
bool
get
isDate
Checks if the string is a valid date in 'YYYY-MM-DD' format.
Implementation
bool get isDate => regex(r'^\d{4}-\d{2}-\d{2}$');
Checks if the string is a valid date in 'YYYY-MM-DD' format.
bool get isDate => regex(r'^\d{4}-\d{2}-\d{2}$');