getGroupMembersList static method
Future<void>
getGroupMembersList({
- required String jid,
- bool? fetchFromServer,
- required dynamic flyCallBack(
- FlyResponse response
Retrieves the list of group members.
This method fetches the list of members in the specified group.
Params:
jid
: The JID of the group.fetchFromServer
: Whether to fetch the list from the server. Defaults tofalse
.
Returns:
flyCallBack
: A callback function that is called with a FlyResponse object upon completion.
Usage example:
Mirrorfly.getGroupMembersList(
jid: "group_jid",
fetchFromServer: true,
flyCallBack: (response) {
// Handle the response
print("Group members list: $response");
},
);
Implementation
static Future<void> getGroupMembersList(
{required String jid,
bool? fetchFromServer,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.getGroupMembersList(jid, fetchFromServer, flyCallBack);
}