loadSuggestions method

Future loadSuggestions(
  1. String query
)

Implementation

Future loadSuggestions(String query) async {
  if (_isDisposed) return;
  final ChipSuggestions<T> results =
      (await findSuggestions(query)).removeAll(chips);
  if (results.match?.isNotEmpty == true) {
    suggestion = results.match;
  } else {
    calculateInlineSuggestion(_suggestions.current);
  }
  _suggestions.current = results;
  notifyListeners();
}