next method
Animates the current page to the next page. Does nothing if it is the last page.
Implementation
Future<void> next({Duration duration = const Duration(milliseconds: 200), Curve curve = Curves.ease}) async {
if (_from(_current) case final page when page < _from(end)) {
await _animateTo(page + 1, duration, curve);
}
}