totalDuration property
Duration
get
totalDuration
Total time occupied by all delays and effects.
Implementation
Duration get totalDuration => steps.fold<Duration>(
Duration.zero,
(total, step) => total + step.delay + step.effect.duration,
);