previousPage method
void
previousPage({})
Navigates to the previous page.
Implementation
void previousPage({
Duration duration = const Duration(milliseconds: 300),
Curves curve = Curves.easeInOut,
}) {
animateToPage(
(page.round() - 1).clamp(0, double.infinity).toInt(),
duration: duration,
curve: curve,
);
}