validate method

  1. @override
String? validate(
  1. T? value
)
override

This method should return null if the field is valid, a string corresponding to the error otherwise.

Implementation

@override
String? validate(T? value) {
  if (innerValidate(value)) {
    return null;
  } else {
    return error;
  }
}