setInlineSuggestion method

void setInlineSuggestion(
  1. T suggestion, {
  2. String? suggestionToken,
  3. bool notify = false,
})

Implementation

void setInlineSuggestion(T suggestion,
    {String? suggestionToken, bool notify = false}) {
  if (_isDisposed) return;
  this.suggestion = Suggestion.highlighted(
      item: suggestion,
      highlightText:
          suggestionToken ?? suggestionToken ?? tokenizer(suggestion).first);
  if (notify) {
    notifyListeners();
  }
}