validate method
void
validate(
- T value
Implementation
void validate(T value) {
this._hasErrors = false;
if (this._isEnabled) {
this._propertyValidators.forEach((t) {
t.validate(value);
if (t.hasError) {
this._hasErrors = true;
this._errors._setError(t.propertyName, t.error);
return;
}
this._errors._setError(t.propertyName, null);
});
} else {
this
._propertyValidators
.forEach((t) => this._errors._setError(t.propertyName, null));
}
}