BaseMaterialInput constructor

BaseMaterialInput(
  1. @Self() @Optional() NgControl? _cd,
  2. ChangeDetectorRef _changeDetector,
  3. DeferredValidator validator
)

Implementation

BaseMaterialInput(@Self() @Optional() this._cd, this._changeDetector,
    DeferredValidator validator) {
  var call = this.call;
  validator.add(call);
  _disposer.addFunction(() {
    // Kill the validator's handle on the input so that it can be GC'ed
    validator.remove(call);
  });
}