containsTweens method
Returns true if this juggler contains tweens for the specified
tweenObject
.
Implementation
bool containsTweens(TweenObject tweenObject) {
_AnimatableLink? link = _firstAnimatableLink;
while (identical(link, _lastAnimatableLink) == false) {
final animatable = link?.animatable;
if (animatable is Tween &&
identical(animatable.tweenObject, tweenObject)) {
return true;
}
link = link?.nextAnimatableLink;
}
return false;
}