setVolume method
Set volume
Implementation
Future<void> setVolume(double volume) async {
try {
await _audioPlayer.setVolume(volume);
_config = _config.copyWith(volume: volume);
} catch (e) {
print('Error setting volume: $e');
onError?.call('Failed to set volume: $e');
}
}