thenTween<T> method

MovieScene thenTween<T>(
  1. MovieTweenPropertyType property,
  2. Animatable<T> tween, {
  3. required Duration duration,
  4. Duration delay = Duration.zero,
  5. Curve? curve,
  6. 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);
}