pauseEffect method Null safety

Future<int> pauseEffect(
  1. int effectId
)

Pauses playback of an audio effect file.

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

Implementation

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