animateToPage method
Animate to page number page
.
Arguments duration
and curve
will override default values provided
as DayView.pageTransitionDuration and DayView.pageTransitionCurve
respectively.
Implementation
Future<void> animateToPage(int page,
{Duration? duration, Curve? curve}) async {
await _pageController.animateToPage(page,
duration: duration ?? widget.pageTransitionDuration,
curve: curve ?? widget.pageTransitionCurve);
}