setEffectSendVolume method Null safety

Future<int> setEffectSendVolume(
  1. int effectId,
  2. int volume
)

Set the publishing volume of an audio effect file

effectId ID of a specified audio effect. Each audio effect has a unique ID. volume publishing volume: 0 - 100. The default value is 100.

Implementation

Future<int> setEffectSendVolume(int effectId, int volume) async {
  IntValue reply = await _api.setEffectSendVolume(SetEffectSendVolumeRequest()
    ..effectId = effectId
    ..volume = volume);
  return reply.value ?? -1;
}