playAudioEffect method

Future<int> playAudioEffect(
  1. int effectId,
  2. int volume, [
  3. int loop = 1
])

Implementation

Future<int> playAudioEffect(
  int effectId,
  int volume, [
  int loop = 1,
]) async {
  Map<String, dynamic> arguments = {
    'id': effectId,
    'volume': volume,
    'loop': loop,
  };
  int code = await _channel.invokeMethod('playAudioEffect', arguments) ?? -1;
  return code;
}