addAll method Null safety

void addAll(
  1. Map<String, AbstractControl> controls
)

Appends all controls to the group.

Implementation

void addAll(Map<String, AbstractControl<dynamic>> controls) {
  _controls.addAll(controls);
  controls.forEach((name, control) {
    control.parent = this;
  });
  updateValueAndValidity();
  updateTouched();
  updatePristine();
  emitsCollectionChanged(_controls.values.toList());
}