getDuration method
Gets audio duration after setting url.
It will be available as soon as the audio duration is available (it might take a while to download or buffer it if file is not local).
Implementation
Future<Duration> getDuration() async {
return Duration(milliseconds: await _invokeMethod('getDuration') as int);
}