resync method

void resync(
  1. TickerProvider vsync
)

Recreates the Ticker with the new TickerProvider.

Implementation

void resync(TickerProvider vsync) {
  final Ticker oldTicker = _ticker!;
  _ticker = vsync.createTicker(_tick);
  _ticker!.absorbTicker(oldTicker);
}