getDuration method
Get audio duration after setting url. Use it in conjunction with setUrl.
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<int> getDuration() {
return _invokeMethod('getDuration');
}