addUsersToGroup static method
Future<void>
addUsersToGroup({
- required String jid,
- required List<
String> userList, - required dynamic flyCallBack(
- FlyResponse response
Adds users to a group.
This method adds the specified users to a group.
Params:
jid
: The JID of the group.userList
: A list of user JIDs to be added to the group.
Returns:
flyCallBack
: A callback function that is called with a FlyResponse object upon completion.
Usage example:
Mirrorfly.addUsersToGroup(
jid: "group_jid",
userList: ["user1_jid", "user2_jid"],
flyCallBack: (response) {
// Handle the response
print("Users added to group: $response");
},
);
Implementation
static Future<void> addUsersToGroup(
{required String jid,
required List<String> userList,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.addUsersToGroup(jid, userList, flyCallBack);
}