getEffectSendVolume method Null safety

Future<int> getEffectSendVolume(
  1. int effectId
)

Get the publishing volume of an audio effect file

effectId ID of a specified audio effect. Each audio effect has a unique ID.

Implementation

Future<int> getEffectSendVolume(int effectId) async {
  IntValue reply =
      await _api.getEffectPlaybackVolume(IntValue()..value = effectId);
  return reply.value ?? -1;
}