getDuration method

Future<double> getDuration()

Duration of the currently playing song if available

Implementation

Future<double> getDuration() {
  return getProperty<double>('duration');
}