void ensureVisualUpdate()

Schedules a new frame using scheduleFrame if this object is not currently producing a frame.

After this is called, the framework ensures that the end of the handleBeginFrame function will (eventually) be reached.

Source

void ensureVisualUpdate() {
  if (schedulerPhase != SchedulerPhase.idle)
    return;
  scheduleFrame();
}