dateFuture static method
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;