animateToEvent method
Future<void>
animateToEvent(
- KalenderEvent event, {
- Duration? pageDuration,
- Curve? pageCurve,
- Duration? scrollDuration,
- Curve? scrollCurve,
- bool centerEvent = true,
override
Animate to the given KalenderEvent.
event the KalenderEvent to animate to.
pageDuration the Duration of the page animation.
pageCurve the Curve of the page animation.
scrollDuration the Duration of the scroll animation.
scrollCurve the Curve of the scroll animation.
centerEvent center the event on the viewport.
Implementation
@override
Future<void> animateToEvent(
KalenderEvent event, {
Duration? pageDuration,
Curve? pageCurve,
Duration? scrollDuration,
Curve? scrollCurve,
bool centerEvent = true,
}) async {
return animateToDate(event.start, duration: scrollDuration, curve: scrollCurve);
}