renameFriendGroup method

Future renameFriendGroup(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> renameFriendGroup(Map<String, dynamic> params) async {
  try {
    final formateParams = mapToJSObj(
        {"oldName": params["oldName"], "newName": params["newName"]});
    final res =
        await promiseToFuture(timeWeb!.renameFriendGroup(formateParams));
    log(res);
    return CommonUtils.returnSuccessForCb(null);
  } catch (error) {
    return CommonUtils.returnError(error);
  }
}