validators property Null safety

List<ValidatorFunction> validators

The list of functions that determines the validity of this control.

In FormGroup these come in handy when you want to perform validation that considers the value of more than one child control.

Implementation

List<ValidatorFunction> get validators =>
    List<ValidatorFunction>.unmodifiable(_validators);