grab method

void grab(
  1. Offset at, {
  2. Offset velocity = Offset.zero,
})

Seeds the chase at at (target included), carrying velocity in - grabbing a surface mid-return stays continuous.

Implementation

void grab(Offset at, {Offset velocity = Offset.zero}) {
  value = at;
  this.velocity = velocity;
  _target = at;
  _resting = false;
}