dateFuture static method

FormFieldValidator<String> dateFuture({
  1. String? errorText,
  2. bool checkNullOrEmpty = true,
})

FormFieldValidator that requires the field's value to be in the future.

Parameters:

  • errorText The error message when the date is not in the future.
  • checkNullOrEmpty Whether to check for null or empty values.

Implementation

static FormFieldValidator<String> dateFuture({
  String? errorText,
  bool checkNullOrEmpty = true,
}) => DateFutureValidator(
  errorText: errorText,
  checkNullOrEmpty: checkNullOrEmpty,
).validate;