setState method

  1. @mustCallSuper
void setState (
  1. StateSetter<P, S> stateSetter
)

setState queues a state change and runs update

Implementation

@mustCallSuper
void setState(StateSetter<P, S> stateSetter) {
  queueStateUpdate(stateSetter);
  update();
}