next method

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

Animates the controlled SlickView from the current page to the next page.

The animation lasts for the given duration and follows the given curve. The returned Future resolves when the animation completes.

The duration and curve arguments must not be null.

Implementation

Future<void> next({
  Duration? duration,
  Curve? curve,
}) async {
  streamController.sink.add(SlickNext(duration: duration, curve: curve));
}