hasErrors property

bool get hasErrors

True whether the control has validation errors.

Implementation

bool get hasErrors =>
    _errors.isNotEmpty || anyControls((control) => control.hasErrors);