update method
Update the currently active squish.
- If no
originis provided, the oldoriginwill be used instead. - If no
targetis provided, the oldtargetwill 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();
}