Merge branch 'master' of github.com:ryanheise/just_audio

This commit is contained in:
Ryan Heise 2020-06-08 21:24:17 +10:00
commit 8680cac01a
7 changed files with 158 additions and 74 deletions

View file

@ -451,7 +451,7 @@ class AudioPlayer {
/// * [AudioPlaybackState.none]
/// * [AudioPlaybackState.connecting]
Future<void> dispose() async {
await _invokeMethod('dispose');
await _invokeMethod('dispose', [_id]);
if (_cacheFile?.existsSync() == true) {
_cacheFile?.deleteSync();
}