date static method

String? date(
  1. String? value, {
  2. String? message,
})

Checks if the value is a valid date.

Implementation

static String? date(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isDate(value) ? null : message ?? 'Please enter a valid date';