setVolume method
Sets the volume
Throws an Exception if the player is not initialized
The volume
should be in range of 0.0, 1.0
Implementation
Future<void> setVolume(double volume) async {
print('RS:---> setVolume');
await _lock.synchronized(() async {
_ensureInited();
var state = await RawSoundPlayerPlatform.instance.setVolume(
this,
volume,
);
_playState = PlayState.values[state];
});
print('RS:---> setVolume');
}