tween<T> method
MovieScene
tween<T>(
- MovieTweenPropertyType property,
- Animatable<
T> tween, { - Duration? begin,
- Duration? duration,
- Duration? end,
- Curve? curve,
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 tween<T>(
/// Property to animate
MovieTweenPropertyType property,
//// Tween that describes the property animation
Animatable<T> tween, {
/// Time in duration at which the scene starts.
Duration? begin,
/// Duration of the scene.
Duration? duration,
/// Time in duration at which the scene ends.
Duration? end,
/// Custom curve for this property animation.
Curve? curve,
}) =>
scene(begin: begin, duration: duration, end: end)
.tween(property, tween, curve: curve);