totalDuration property

Duration get totalDuration

Total duration including all steps and delays

Implementation

Duration get totalDuration {
  return steps.fold<Duration>(
    Duration.zero,
    (total, step) => total + step.animation.duration + step.delay,
  );
}