animateToX method

Future<void> animateToX(
  1. double x, {
  2. required Duration duration,
  3. required Curve curve,
})

Implementation

Future<void> animateToX(
  double x, {
  required Duration duration,
  required Curve curve,
}) {
  final ScrollableChartPosition position =
      this.position as ScrollableChartPosition;
  return position.animateTo(
    position.getPixelsFromX(x),
    duration: duration,
    curve: curve,
  );
}