createTicker method
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 ??= <Ticker>{};
final ticker = Ticker(onTick, debugLabel: 'created by $this');
_tickers!.add(ticker);
// We'll track and clean up the ticker in onClose
return ticker;
}