removeControl method

  1. @override
void removeControl (NgControl dir)
override

Remove a control from this form.

Implementation

@override
void removeControl(NgControl dir) {
  scheduleMicrotask(() {
    var container = findContainer(dir.path);
    if (container != null) {
      container.removeControl(dir.name);
      container.updateValueAndValidity(emitEvent: false);
    }
  });
}