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) {
assert(_ticker == null,
'A ReactrSingleTickerProviderStateMixin can only be used as a TickerProvider once.');
_ticker = Ticker(onTick, debugLabel: 'created by $this');
// We'll dispose the ticker in onClose
return _ticker!;
}