addControl method

  1. @override
void addControl (NgControl dir)
override

Add a control to this form.

Implementation

@override
void addControl(NgControl dir) {
  var container = findContainer(dir.path);
  var ctrl = createControl(dir);
  container.addControl(dir.name, ctrl);
  scheduleMicrotask(() {
    setUpControl(ctrl, dir);
    ctrl.updateValueAndValidity(emitEvent: false);
  });
}