kickGroupMember method

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

Implementation

Future<dynamic> kickGroupMember(Map<String, dynamic> params) async {
  try {
    final kickGroupMemberParams = KickGroupMember.formatParams(params);
    final res = await wrappedPromiseToFuture(
        timeweb!.deleteGroupMember(kickGroupMemberParams));
    if (res.code == 0) {
      return CommonUtils.returnSuccessWithDesc('ok');
    }

    return CommonUtils.returnError('kick group member failed');
  } catch (error) {
    return CommonUtils.returnError(error);
  }
}