stopPlayer method
Use this to stop player. After calling this, resources are freed
.
Implementation
Future<void> stopPlayer() async {
final isStopped = await AudioWaveformsInterface.instance
.stopPlayer(_playerKey.toString());
if (isStopped) {
setPlayerState(PlayerState.stopped);
}
notifyListeners();
}