setStateOnAnimationFrame method

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

setState queues a state change and runs updateOnAnimationFrame

Implementation

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