MaterialAutoSuggestInputComponent<T>.protected constructor

MaterialAutoSuggestInputComponent<T>.protected(
  1. NgControl? _cd,
  2. IdGenerator idGenerator,
  3. ChangeDetectorRef _changeDetector, [
  4. PopupSizeProvider? _popupSizeDelegate,
])

Implementation

MaterialAutoSuggestInputComponent.protected(
    this._cd, IdGenerator idGenerator, this._changeDetector,
    [this._popupSizeDelegate])
    : activeModel = ActiveItemModel(idGenerator, loop: true),
      popupId = idGenerator.nextId(),
      inputId = idGenerator.nextId() {
  if (_cd != null) {
    _cd?.valueAccessor = this;
  }
  selection = SelectionModel.single();
}