thenTween<T> method
MovieScene
thenTween<T>(
- MovieTweenPropertyType property,
- Animatable<
T> tween, { - required Duration duration,
- Duration delay = Duration.zero,
- Curve? curve,
- Curve? sceneCurve,
Animates a property and returns the implicitly created scene. The scene can be used to add further properties to the scene or to add further scenes to the movie.
Implementation
MovieScene thenTween<T>(
/// Property to animate
MovieTweenPropertyType property,
//// Tween that describes the property animation.
Animatable<T> tween, {
/// Duration of the scene
required Duration duration,
/// Fine-tune the begin time of the next scene by adding a delay.
/// The value can also be negative.
Duration delay = Duration.zero,
/// Custom curve for this property.
Curve? curve,
Curve? sceneCurve,
}) {
return thenFor(duration: duration, delay: delay, curve: sceneCurve)
.tween(property, tween, curve: curve);
}