setStateWithUpdater method
void
setStateWithUpdater(
- StateUpdaterCallback updater, [
- SetStateCallback? callback
Triggers a rerender with new state obtained by shallow-merging
the return value of updater
into the current state.
Optionally accepts a callback
that gets called after the component updates.
Implementation
void setStateWithUpdater(StateUpdaterCallback updater, [SetStateCallback? callback]) {
_bridge.setStateWithUpdater(this, updater, callback);
}