updateShouldNotify method
Currently rebuild is triggered only if isSearchMode changed.
Implementation
@override
bool updateShouldNotify(AppBarWithSearchSwitch oldWidget) {
return isSearchMode != oldWidget.isSearchMode;
}
Currently rebuild is triggered only if isSearchMode changed.
@override
bool updateShouldNotify(AppBarWithSearchSwitch oldWidget) {
return isSearchMode != oldWidget.isSearchMode;
}