animateTo method

void animateTo(
  1. Offset target
)

Animate toward target, preserving current velocity.

Implementation

void animateTo(Offset target) {
  _x.animateTo(target.dx);
  _y.animateTo(target.dy);
}