isValid method

  1. @override
bool isValid(
  1. String? value
)
override

checks the input against the given conditions

Implementation

@override
bool isValid(value) {
  for (FieldValidator validator in validators) {
    if (validator.call(value) != null) {
      _errorText = validator.errorText;
      return false;
    }
  }
  return true;
}