scrollToIndex abstract method

Future scrollToIndex(
  1. int index,
  2. double? preferPosition, {
  3. Duration duration = scrollAnimationDuration,
})

scroll to the giving index

Implementation

Future scrollToIndex(
  int index,
  double? preferPosition, {
  Duration duration = scrollAnimationDuration,
});