bool isDate(String value) { return _regex(r'^\d{4}-(?:1[0-2]|0[1-9])-(?:3[0-1]|[1-2][0-9]|0[1-9])$', value); }