update method
Update the currently active squish.
- If no
origin
is provided, the oldorigin
will be used instead. - If no
target
is provided, the oldtarget
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();
}