animateToWithSameOriginIndex method

Future<void> animateToWithSameOriginIndex(
  1. double offset, {
  2. Duration duration = const Duration(milliseconds: 750),
  3. Curve curve = Curves.decelerate,
})

Same as animateTo but will keep the current origin-index.

Implementation

Future<void> animateToWithSameOriginIndex(
  double offset, {
  Duration duration = const Duration(milliseconds: 750),
  Curve curve = Curves.decelerate,
}) {
  return super.animateTo(offset, duration: duration, curve: curve);
}