duration property
double
get
duration
Returns the duration of the Wav in seconds.
Implementation
double get duration =>
channels.isEmpty ? 0 : channels[0].length / samplesPerSecond;
Returns the duration of the Wav in seconds.
double get duration =>
channels.isEmpty ? 0 : channels[0].length / samplesPerSecond;