allControls method
Returns a complete list of FormControls without subgroups (terminal elements) Возвращает полный список FormControl-ов без вложений (терминальные элементы)
Implementation
List<FormControl> allControls() {
List<FormControl> controls = [];
for (final control in this.getControls()) {
if (control.type == ControlTypes.Control) {
controls.add(control as FormControl<dynamic>);
} else if (control.type == ControlTypes.Group ||
control.type == ControlTypes.Array) {
controls.addAll((control as FormAbstractGroup).allControls());
}
}
return controls;
}