createTicker method

  1. @override
Ticker createTicker(
  1. 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(onTick) {
  _tickers ??= <Ticker>{};
  final Ticker result = Ticker(onTick, debugLabel: 'created by $this');
  _tickers!.add(result);
  return result;
}