getGroupMembersList static method

Future<void> getGroupMembersList({
  1. required String jid,
  2. bool? fetchFromServer,
  3. required dynamic flyCallBack(
    1. 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 to false.

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);
}