animate property

Accessor for 2D properties like x, y, rotation, alpha and others which can be animated with this tween. Works for all display objects.

Implementation

TweenPropertyAccessor2D get animate {
  final tweenObject = _tweenObject;
  if (tweenObject is TweenObject2D) {
    return TweenPropertyAccessor2D._(this, tweenObject);
  } else {
    throw StateError('Invalid tween object for 2D animation.');
  }
}