clear method Null safety

void clear()

Removes all Animatables from this juggler.

Implementation

void clear() {
  _AnimatableLink? link = _firstAnimatableLink;
  while (identical(link, _lastAnimatableLink) == false) {
    link?.animatable = null;
    link = link?.nextAnimatableLink;
  }

  _lastAnimatableLink = _firstAnimatableLink;
}