setVolume method

Future<bool> setVolume(
  1. double volume,
  2. String key
)

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;
}