animateToCoordinate method
Animate the scroll in both axis to make a specific coordinate
visible.
See also:
- animateToHeader called by this method for both axis.
- jumpToCoordinate
Implementation
Future<void> animateToCoordinate(
IntVector2 coordinate, {
Duration duration = kDefaultScrollAnimationDuration,
Curve curve = kDefaultScrollAnimationCurve,
}) =>
Future.wait([
animateToHeader(
coordinate.dx,
Axis.horizontal,
duration: duration,
curve: curve,
),
animateToHeader(
coordinate.dy,
Axis.vertical,
duration: duration,
curve: curve,
),
]);