previousPage method

Future<void> previousPage({
  1. required Duration duration,
  2. required Curve curve,
})

Animates the controlled VxSwiper to the previous page.

The animation lasts for the given duration and follows the given curve. The returned Future resolves when the animation completes.

Implementation

Future<void> previousPage(
    {required Duration duration, required Curve curve}) {
  return pageController.previousPage(duration: duration, curve: curve);
}