AnimationTimeline constructor
AnimationTimeline({
- required List<
AnimationTimelineStep> steps, - bool repeat = false,
- bool alternate = false,
- void onStepStart(
- int index,
- AnimationTimelineStep step,
- TimelineDirection direction
- void onStepComplete(
- int index,
- AnimationTimelineStep step,
- TimelineDirection direction
- Object? id,
Implementation
AnimationTimeline({
required List<AnimationTimelineStep> steps,
this.repeat = false,
this.alternate = false,
this.onStepStart,
this.onStepComplete,
Object? id,
}) : _steps = List<AnimationTimelineStep>.unmodifiable(steps),
_id = id ?? Object() {
if (_steps.isEmpty) {
throw ArgumentError.value(steps, 'steps', 'must not be empty');
}
}