suggestion property

Suggestion<T> suggestion

Implementation

Suggestion<T> get suggestion =>
    _suggestion.current ?? const Suggestion.empty();
void suggestion=(Suggestion<T>? suggestion)

Implementation

set suggestion(Suggestion<T>? suggestion) => checkStatusVoid(() {
      suggestion ??= Suggestion<T>.empty();
      if (suggestion!.isNotEmpty && suggestion!.highlightText == null) {
        /// Should we do this here??
        suggestion = suggestion!.copy(
            highlightText: tokenizer(suggestion!.item).where((s) {
          return s.toLowerCase().startsWith(query.toLowerCase());
        }).firstOrNull);
      }
      _suggestion.current = suggestion;
      notifyListeners();
    });