setSelectedSearchSuggestion method
- {required int index}
Change the index of the selected search suggestion and update the state of the image picker.
Implementation
void setSelectedSearchSuggestion({
required int index,
}) {
if (index == -1) {
_exportFile = null;
} else {
_exportFile = _imageSuggestions![index];
}
_indexNotifier.value = index;
}