unInitSDK method

Future unInitSDK()

Implementation

Future<dynamic> unInitSDK() async {
  if (V2TIMManagerWeb.timWeb != null) {
    try {
      await promiseToFuture(V2TIMManagerWeb.timWeb!.destroy());
      loginUserID = "";
      return CommonUtils.returnSuccess<String>("uninit success");
    } catch (err) {
      return CommonUtils.returnError(jsToMap(err));
    }
  }
  return CommonUtils.returnError("未初始化");
}