AutoScroller<TKey> constructor

AutoScroller<TKey>({
  1. required TickerProvider vsync,
  2. required PointerSpace<TKey> space,
  3. required Offset pointerGlobal(),
  4. required double edgeZone,
  5. 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);
}