thenFor method

MovieScene thenFor({
  1. required Duration duration,
  2. Duration delay = Duration.zero,
  3. Curve? curve,
})

Adds an additional scene that begins immediately after this scene.

Implementation

MovieScene thenFor({
  /// 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 scene.
  Curve? curve,
}) {
  return parent.scene(
    begin: begin + this.duration + delay,
    duration: duration,
    curve: curve,
  );
}