killTweensOf static method
Removes all tweens associated with the given target
object.
This method iterates through all existing tweens and removes any that are
associated with the given target
object. A tween is considered
associated with the target
if its target or _animatableTarget property
matches the target
, or if the target
is one of the targets of a
multi-target tween.
Implementation
static void killTweensOf(Object? target) {
var t = _first;
while (t != null) {
var next = t._next;
if (t.target == target || t._animatableTarget == target) {
t.kill();
} else if (t._targets != null) {
t.kill(target);
}
t = next;
}
}