cacheSuggestions method

void cacheSuggestions({
  1. required String? text,
  2. PlacesSuggestions? data,
})

Add the PlacesSuggestions to the cache.

Implementation

void cacheSuggestions({
  required String? text,
  PlacesSuggestions? data,
}) {
  if (text != null && data != null) {
    _suggestionsCache[text] = data;
  }
}