setVolume method
Sets volume for this player. Doesn't throw Exception. Returns false if it couldn't set the volume.
Minimum value 0.0 is treated as mute and 1.0 as max volume.
Providing value greater 1.0 is also treated same as 1.0 (max volume).
Default to 1.0
Implementation
Future<bool> setVolume(double volume) async {
final result =
await AudioWaveformsInterface.instance.setVolume(volume, playerKey);
return result;
}