scrollPhysics property

ScrollPhysics? scrollPhysics
final

How the carousel should respond to user input.

For example, determines how the items continues to animate after the user stops dragging the page view.

The physics are modified to snap to page boundaries using PageScrollPhysics prior to being used.

Defaults to matching platform conventions.

Implementation

final ScrollPhysics? scrollPhysics;