enableAudio method

Future<void> enableAudio(
  1. String sessionId, {
  2. bool? enable,
  3. double? userId,
})

Implementation

Future<void> enableAudio(String sessionId, {bool? enable, double? userId}) async {
  Map<String, Object> values = Map();

  values["sessionId"] = sessionId;

  if (enable != null) {
    values["enable"] = enable;
  }
  if (userId != null) {
    values["userId"] = userId;
  }

  await _webRtcModule.invokeMethod(ENABLE_AUDIO_METHOD, values);
}