isSearchMode property
ValueNotifier<bool>
isSearchMode
Indicator of whenever search bar is active.
Can be set directly, like this:
AppBarWithSearchSwitch.of(context).isSearchMode.value = true;
``
Can be changed by parameter: [customIsSearchModeNotifier] = `ValueNotifier<bool>(false)`
Implementation
ValueNotifier<bool> get isSearchMode =>
customIsSearchModeNotifier ?? (super.child as AppBarBuilder).isSearchMode;