musicVolume property
Gets the current volume of the music, ranging from 0.0 (silent) to 1.0 (full volume).
Implementation
double get musicVolume => _musicVolume;
Sets the music volume.
The volume
is clamped between 0.0 (silent) and 1.0 (full volume).
Implementation
set musicVolume(double volume) {
_musicVolume = volume.clamp(0.0, 1.0);
_music?.volume = _musicVolume;
}