AutoScroller<TKey> constructor
AutoScroller<TKey> ({
- required TickerProvider vsync,
- required PointerSpace<
TKey> space, - required Offset pointerGlobal(),
- required double edgeZone,
- required double maxVelocity,
Implementation
AutoScroller({
required TickerProvider vsync,
required PointerSpace<TKey> space,
required Offset Function() pointerGlobal,
required double edgeZone,
required double maxVelocity,
}) : _space = space,
_pointerGlobal = pointerGlobal,
_edgeZone = edgeZone,
_maxVelocity = maxVelocity {
_ticker = vsync.createTicker(_onTick);
}