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) {
_ticker?.dispose();
final bool muted =
!_isDurableVsyncActive || !TickerMode.valuesOf(this).enabled;
final ticker = _DurableVsyncSocketTicker(
onTick,
this,
debugLabel: kDebugMode
? (_isDurableVsyncActive
? 'created by $this'
: 'created by $this (dormant)')
: null,
)..muted = muted;
_ticker = ticker;
return ticker;
}