isDate static method

bool isDate(
  1. String input
)

Return whether input matches regex of date which pattern is 'yyyy-MM-dd'.

Implementation

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