add method

void add(
  1. Animatable animatable

Adds the animatable to this juggler who will take care that it is animated.

When the animatable is finished it is automatically removed from this juggler. An animatable is finished as soon as it's advanceTime method returns false.


void add(Animatable animatable) {
  if (contains(animatable) == false) {
    final animatableLink = _AnimatableLink();
    _lastAnimatableLink.animatable = animatable;
    _lastAnimatableLink.nextAnimatableLink = animatableLink;
    _lastAnimatableLink = animatableLink;