removeMemberFromGroup static method
Future<void>
removeMemberFromGroup({
- required String groupJid,
- required String userJid,
- required dynamic flyCallBack(
- FlyResponse response
Removes a member from a group.
This method removes the specified user from the specified group.
Params:
groupJid
: The JID of the group.userJid
: The JID of the user to be removed.
Returns:
flyCallBack
: A callback function that is called with the response.
Usage example:
Mirrorfly.removeMemberFromGroup(
groupJid: groupJid,
userJid: userJid,
flyCallBack: (response) {
// Handle the response
print("User removed from group: $response");
},
);
Implementation
static Future<void> removeMemberFromGroup(
{required String groupJid,
required String userJid,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.removeMemberFromGroup(groupJid, userJid, flyCallBack);
}