stopEffect method Null safety

Future<int> stopEffect(
  1. int effectId
)

Stop playing a specified audio effect file.

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

Implementation

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