setVolume method

Future<int> setVolume(
  1. RawSoundPlayerPrototype player,
  2. double volume
)

Implementation

Future<int> setVolume(
  RawSoundPlayerPrototype player,
  double volume,
) async {
  final playerNo = _players[player];
  final ret = await _channel.invokeMethod<int>('setVolume', {
    'playerNo': playerNo,
    'volume': volume,
  });
  return ret!;
}