getComponent method

double getComponent(
  1. Offset offset
)

Gets the horizontal or vertical component based on the scroll view's scroll axis.

Implementation

double getComponent(Offset offset) =>
    _scrollPosition?.axis == Axis.horizontal ? offset.dx : offset.dy;