addSubsequentScene method

TimelineScene<T> addSubsequentScene({
  1. required Duration duration,
  2. Duration delay = Duration.zero,
  3. Curve? curve,
})

Adds an additional scene that begins immediately after this scene for a given duration.

The chronological position can be fine-tuned by specifying a delay.

By default the scene uses a linear easing curve for all it's animated properties. This can be change by specifying a curve.

Implementation

TimelineScene<T> addSubsequentScene({
  required Duration duration,
  Duration delay = Duration.zero,
  Curve? curve,
}) {
  return parent.addScene(
    begin: begin + this.duration + delay,
    duration: duration,
    curve: curve,
  );
}