nextPage method
void
nextPage({})
Navigates to the next page.
Implementation
void nextPage({
Duration duration = const Duration(milliseconds: 300),
Curves curve = Curves.easeInOut,
}) {
animateToPage(
page.round() + 1,
duration: duration,
curve: curve,
);
}