getDuration method

  1. @override
Future<double> getDuration(
  1. String path
)
override

Get the duration of the audio file in seconds

Implementation

@override
Future<double> getDuration(String path) async {
  if (_audioElement != null) {
    return _currentDuration;
  }
  return 0.0;
}