scrollToIndex method
Future
scrollToIndex(
- int index, {
- Duration duration = scrollAnimationDuration,
- AutoScrollPosition? preferPosition,
override
scroll to the giving index
Implementation
@override
Future scrollToIndex(int index,
{Duration duration: scrollAnimationDuration,
AutoScrollPosition? preferPosition}) async {
return co(
this,
() => _scrollToIndex(index,
duration: duration, preferPosition: preferPosition));
}