isBefore method

FieldValidator<T, DateTime> isBefore(
  1. DateTime other, [
  2. MessageCallBack<DateTime>? message
])

check if the value is before other

Implementation

FieldValidator<T, DateTime> isBefore(DateTime other,
    [MessageCallBack<DateTime>? message]) {
  return isBeforeFn(() => other, message);
}