resync method

void resync(
  1. TickerProvider vsync
)

Recreates the underlying ticker with a new TickerProvider.

Requires:

Ensures:

  • Updates the local vsync property and notifies the underlying state delegate.

Example:

controller.resync(newVsyncProvider);

Implementation

void resync(TickerProvider vsync) {
  this.vsync = vsync;
  _delegate.resync(vsync);
}