datePast static method
FormFieldValidator that requires the field's value to be a valid time in the past.
Parameters:
errorText
The error message when the time is not in the past.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<String> datePast({
String? errorText,
bool checkNullOrEmpty = true,
}) => DatePastValidator(
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;