onChange property
(void Function(Map<String, SearchControllerState> , Map<String, SearchControllerState> )?)
onChange
final
Callback function, is a callback function called when the search state changes and accepts the previous and next search state as arguments. For example,
StateProvider(
...
onChange: (nextState, prevState) {
// do something here
},
...
)
Implementation
final void Function(Map<String, SearchControllerState>,
Map<String, SearchControllerState>)? onChange;