duration property

Duration duration

The duration of audio, inferred from the length of the waveform data.

Implementation

Duration get duration => Duration(
    microseconds: 1000 * 1000 * length * samplesPerPixel ~/ sampleRate);