initState method

  1. @override
void initState ()

Implementation

@override
void initState() {
  super.initState();
  _chips.addAll(widget.initialValue);
  _updateTextInputState();
  _initFocusNode();
  this._suggestionsBoxController = _SuggestionsBoxController(context);
  this._suggestionsStreamController = StreamController<List<T>>.broadcast();

  (() async {
    await this._initOverlayEntry();
    this._focusNode.addListener(_onFocusChanged);
    // in case we already missed the focus event
    if (this._focusNode.hasFocus) {
      this._suggestionsBoxController.open();
    }
  })();
}