Creates a new Tween for the specified TweenObject with a duration
of time
seconds.
All display objects implements TweenObject2D and all 3D display additionally objects implements TweenObject3D. Therefore all display objects can be used with with tweens.
Source
Tween(TweenObject tweenObject, num time, [TransitionFunction transition = Transition.linear]) : _tweenObject = tweenObject, _transition = transition { if (_tweenObject is! TweenObject) { throw new ArgumentError("tweenObject"); } _totalTime = max(0.0001, time); }