processTick static method

void processTick(
  1. double elapsed
)

Processes a single tick of the GTween engine using the given elapsed time. Dispatches the ticker signal to update all registered GTween objects.

Implementation

static void processTick(double elapsed) {
  // TODO: This is a temporal solution, GTween must work per SceneController
  // or make GTicker global... being able to track unique refresh frames
  // is a must.
  final ts = SchedulerBinding.instance.currentFrameTimeStamp;
  if (_lastFrameTimeStamp == ts) return;
  GTween.ticker.dispatch(elapsed);
  _lastFrameTimeStamp = ts;
}