setStateWithUpdater method
      
  
void
setStateWithUpdater(
    
- covariant Map? updater(- TState prevState,
- TProps props
 
- dynamic callback()?
override
    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
@override
void setStateWithUpdater(covariant Map? Function(TState prevState, TProps props) updater, [Function()? callback]) {
  final bridge = Component2Bridge.forComponent(this)! as UiComponent2BridgeImpl;
  bridge.setStateWithTypedUpdater(this, updater, callback);
}