Hi apprentices
In Chapter 9 → building the search TextField section:
I’m curious why we didn’t use the startSearch() method for the onSubmitted callback in the search TextField.
onSubmitted: (input) {
//TODO: why don't use startSearch()?
if (!previousSearches.contains(input)) {
previousSearches.add(input.trim());
savePreviousSearches();
}
},