deltaToScrollOrigin property
An Offset that represents the absolute distance from the origin, or 0, of the ScrollPosition expressed in the associated Axis.
Used by EdgeDraggingAutoScroller to progress the position forward when a drag gesture reaches the edge of the Viewport.
Implementation
Offset get deltaToScrollOrigin {
return switch (axisDirection) {
AxisDirection.up => Offset(0, -position.pixels),
AxisDirection.down => Offset(0, position.pixels),
AxisDirection.left => Offset(-position.pixels, 0),
AxisDirection.right => Offset(position.pixels, 0),
};
}