previousPage method

Future<void> previousPage({
  1. Duration duration = const Duration(milliseconds: 300),
  2. Curve curve = Curves.ease,
})

Animates the parent PageView to the previous page.

Implementation

Future<void> previousPage({
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = Curves.ease,
}) async =>
    pageController.previousPage(duration: duration, curve: curve);