animateToPreviousSectionIndex method

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

Implementation

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