frameCallback method

  1. @protected
  2. @mustCallSuper
void frameCallback(
  1. Duration duration
)

The frame callback for the ticker.

Implementations of this method should start with a call to super.frameCallback(duration) to ensure the ticker is properly managed.

Implementation

@protected
@mustCallSuper
void frameCallback(Duration duration) {
  // TODO (Gordon): We also need to consider standard default behaviour for
  // what Rive should do when not visible on the screen:
  // - Advance and not draw
  // - Draw and advance
  // - Neither advance nor draw
  // - (Optional enum for users to choose)
  _calculateElapsedSeconds(duration);
}