contains method

bool contains(
  1. Animatable animatable
)

Returns true if this juggler contains the specified animatable.

Implementation

bool contains(Animatable animatable) {
  _AnimatableLink? link = _firstAnimatableLink;
  while (identical(link, _lastAnimatableLink) == false) {
    if (identical(link?.animatable, animatable)) return true;
    link = link?.nextAnimatableLink;
  }

  return false;
}