animateToRelative method

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

Same as animateTo but will move offset from the current position.

Implementation

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