isDate static method

bool isDate(
  1. String input
)

Returns whether the input matches the date regex with pattern 'yyyy-MM-dd'.

Implementation

static bool isDate(String input) {
  return matches(regexDate, input);
}