setEffectPosition method Null safety

Future<void> setEffectPosition(
  1. int soundId,
  2. int pos

Sets the playback position of an audio effect file.

Since v3.4.2

After a successful setting, the local audio effect file starts playing at the specified position.


Parameter soundId Audio effect ID. Ensure that this parameter is set to the same value as in playEffect.

Parameter pos The playback position (ms) of the audio effect file.


Future<void> setEffectPosition(int soundId, int pos) {
  return _invokeMethod('setEffectPosition', {
    'soundId': soundId,
    'pos': pos,