setEffectVolume method

Future<int> setEffectVolume(
  1. int effectId,
  2. int volume
)

Implementation

Future<int> setEffectVolume(int effectId, int volume) async {
  Map<String, dynamic> arguments = {'effectId': effectId, 'volume': volume};
  String? result = await _channel.invokeMethod("setEffectVolume", arguments);
  Map<String, dynamic> json = jsonDecode(result!);
  int? code = json['code'];
  return code ?? -1;
}