isTweening static method

bool isTweening(
  1. Object target
)

Returns whether the given target is currently being tweened. This method iterates through all active tweens and checks whether the target object matches the tween's target or animatable target.

Returns true if the target is being tweened, false otherwise.

Implementation

static bool isTweening(Object target) {
  var t = _first;
  while (t != null) {
    var next = t._next;
    if (t.target == target || t._animatableTarget == target) {
      return true;
    }
    t = next;
  }
  return false;
}