suggestion property

Suggestion<T> get suggestion

Implementation

Suggestion<T> get suggestion =>
    _suggestion.current ?? const Suggestion.empty();
set 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();
    });