validate method

bool validate({
  1. required AutoFieldWidget field,
  2. required String value,
})

Implementation

bool validate({required AutoFieldWidget field, required String value}) {
  String targetValue = field.form.resolveValue(value);

  return condition(value, targetValue);
}