setVolume method
Sets the player's volume. Range: 0.0 (mute) to 1.0 (max).
Implementation
Future<void> setVolume(double volume) async {
final id = _playerId;
if (id == null) return;
await _platform.setVolume(id, volume.clamp(0.0, 1.0));
value = value.copyWith(volume: volume.clamp(0.0, 1.0));
}