animateToNextPage method

  1. @override
Future<void> animateToNextPage({
  1. Duration? duration,
  2. Curve? curve,
})

Animate to the next page.

Implementation

@override
Future<void> animateToNextPage({Duration? duration, Curve? curve}) async {
  await pageController.nextPage(
    duration: duration ?? defaultAnimationDuration,
    curve: curve ?? defaultAnimationCurve,
  );
}