getInstance static method
初始化实例
Implementation
static Future<BaiduRtcCloud?> getInstance(BRTCInitParams params) async {
if (bdRtcCloud == null) {
bdRtcCloud = new BaiduRtcCloud();
await bRTCPluginChannel.invokeMethod('initWithAppID', {
"appId": params.appId,
"token": params.token,
"cpuType": params.cpuType,
"isEnableSoLaterLoad": params.isEnableSoLaterLoad,
});
}
return bdRtcCloud;
}