nextPage method
Animates the parent PageView to the next page.
Implementation
Future<void> nextPage({
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.ease,
}) async =>
pageController.nextPage(duration: duration, curve: curve);