Minor changes to v2 PR

This commit is contained in:
Ryan Heise 2020-06-08 21:53:05 +10:00
parent 8680cac01a
commit c7543941c3
4 changed files with 9 additions and 10 deletions

View file

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