resync method
Recreates the underlying ticker with a new TickerProvider.
vsync: The new TickerProvider to sync ticker updates with.
Requires:
vsyncmust be a non-null TickerProvider.
Ensures:
- Updates the local
vsyncproperty and notifies the underlying state delegate.
Example:
controller.resync(newVsyncProvider);
Implementation
void resync(TickerProvider vsync) {
this.vsync = vsync;
_delegate.resync(vsync);
}