animateToNextSectionIndex method

dynamic animateToNextSectionIndex({
  1. Duration duration = const Duration(milliseconds: 1000),
  2. Curve curve = Curves.ease,
})

Implementation

animateToNextSectionIndex({
  Duration duration = const Duration(milliseconds: 1000),
  Curve curve = Curves.ease,
}) {
  animateToSectionIndex(_lastAnimatedIndex + 1,
      duration: duration, curve: curve);
}