createTicker method

  1. @override
Ticker createTicker (TickerCallback onTick)
override

Creates a ticker with the given callback.

The kind of ticker provided depends on the kind of ticker provider.

Implementation

@override
Ticker createTicker(TickerCallback onTick) {
  _tickers ??= <_TestTicker>{};
  final _TestTicker result = _TestTicker(onTick, _removeTicker);
  _tickers.add(result);
  return result;
}