totalDuration property

double get totalDuration

Total duration in seconds.

Implementation

double get totalDuration => segments.fold(0, (sum, s) => sum + s.duration);