stopEffect method Null safety

Future<void> stopEffect(
  1. int soundId
)

Stops playing a specified audio effect.

Note If you preloaded the audio effect into the memory through the RtcEngine.preloadEffect method, ensure that the soundID value is set to the same value as in the RtcEngine.preloadEffect method.

Parameter soundId ID of the specified audio effect. Each audio effect has a unique ID.

Implementation

@override
Future<void> stopEffect(int soundId) {
  return _invokeMethod('stopEffect', {
    'soundId': soundId,
  });
}