FixedExtentScrollController constructor

FixedExtentScrollController({
  1. int initialItem = 0,
  2. ScrollControllerCallback? onAttach,
  3. ScrollControllerCallback? onDetach,
})

Creates a scroll controller for scrollables whose items have the same size.

initialItem defaults to zero.

Implementation

FixedExtentScrollController({
  this.initialItem = 0,
  super.onAttach,
  super.onDetach,
});