SnappingListScrollPhysics constructor

const SnappingListScrollPhysics({
  1. required double itemWidth,
  2. ScrollPhysics? parent,
})

Supply the intended width of the items scrolled. Optionally supply a 'parent' Physics object to encompass.

Implementation

const SnappingListScrollPhysics({
  required this.itemWidth,
  ScrollPhysics? parent,
}) : super(parent: parent);