resync method

void resync (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);
}