updateSuggestion method

void updateSuggestion({
  1. required Matcher<T> matcher,
  2. required T suggestionToApply,
})

Let the FlutterParsedTextField know that you have selected a suggestion and want it applied to the text field.

Implementation

void updateSuggestion({
  required Matcher<T> matcher,
  required T suggestionToApply,
}) {
  _matcher = matcher;
  _suggestionToApply = suggestionToApply;

  notifyListeners();
}