setVolume method
platform call to set volume
Implementation
Future<bool> setVolume(double volume, String key) async {
var result = await _methodChannel.invokeMethod(Constants.setVolume, {
Constants.volume: volume,
Constants.playerKey: key,
});
return result ?? false;
}