getEffectCurrentPosition method Null safety

Future<int> getEffectCurrentPosition(
  1. int effectId
)

Get the current position of an audio effect file. The method gets the playback position of the audio file. Unit: milliseconds. effectId ID of a specified audio effect. Each audio effect has a unique ID.

Implementation

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