ScrollToIndex constructor

const ScrollToIndex({
  1. Key? key,
  2. required List<ScrollToIndexBaseObject> list,
  3. Duration? duration,
  4. double topDistance = 0,
  5. required ScrollToIndexController? controller,
  6. required IndexedWidgetBuilder itemBuilder,
})

Implementation

const ScrollToIndex({Key? key, required this.list, this.duration, this.topDistance = 0, required this.controller, required this.itemBuilder}) : super(key: key);