startSearch method
void
startSearch()
Show the search bar.
Example usage:
AppBar(
//...
actions: [
IconButton(
icon: Icon(Icons.search, semanticLabel: "Search"),
onPressed: () {
AppBarWithSearchSwitch.of(context)?.startSearch();
},
),
],
);
Implementation
void startSearch() {
isSearchMode.value = true;
}