update method

void update({
  1. Offset? origin,
  2. Offset? target,
})

Update the currently active squish.

  • If no origin is provided, the old origin will be used instead.
  • If no target is provided, the old target will be used instead.

A squish must already be active when calling this function.

Implementation

void update({
  Offset? origin,
  Offset? target,
}) {
  assert(isActive);

  _origin = origin ?? _origin;
  _target = target ?? _target;

  notifyListeners();
}