BouncingScrollPhysics constructor

const BouncingScrollPhysics({
  1. ScrollDecelerationRate decelerationRate = ScrollDecelerationRate.normal,
  2. ScrollPhysics? parent,
})

Creates scroll physics that bounce back from the edge.

The decelerationRate defaults to ScrollDecelerationRate.normal.

Implementation

// Any parameters that are added here should also be forwarded by `ScrollPhysics.bouncing`.
const BouncingScrollPhysics({
  this.decelerationRate = ScrollDecelerationRate.normal,
  super.parent,
});