allowSelectionEdgeScrolling property

bool get allowSelectionEdgeScrolling

Whether a viewport may scroll to reveal more content when a selection gesture extends past the visible area, i.e. the viewport's edge.

Paged scrollables that want to prevent selection gestures from revealing an adjacent page should override this to false in their ScrollPhysics, similar to PageScrollPhysics used by PageView.

Defaults to true, or to the value of the parent physics when there is one.

Implementation

bool get allowSelectionEdgeScrolling => parent?.allowSelectionEdgeScrolling ?? true;