Check if Stateless widget is disposed in flutter
问题 When my stateless widget built I play some sounds in sequence order by using this code: await _audioPlayer.play(contentPath1, isLocal: true); await Future.delayed(Duration(seconds: 4)); await _audioPlayer.play(contentPath2, isLocal: true); await Future.delayed(Duration(seconds: 4)); await _audioPlayer.play(contentPath3, isLocal: true); when the user closes the current widget before finish playing the sounds, The sounds still work even after closing the current route by using this code: