call method
Implementation
Future<QBRTCSession?> call(List<int> opponentsIds, int sessionType, {Map<String, Object>? userInfo}) async {
Map<String, Object> values = Map();
values["opponentsIds"] = opponentsIds;
values["type"] = sessionType;
if (userInfo != null) {
values["userInfo"] = userInfo;
}
Map<Object?, Object?> map = await _webRtcModule.invokeMethod(CALL_METHOD, values);
QBRTCSession? qbSession = QBRTCSessionMapper.mapToQBRtcSession(map);
return qbSession;
}