deleteGroup static method

Future<void> deleteGroup({
  1. required String jid,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Deletes a group.

This method deletes the specified group.

Params:

  • jid : The JID of the group to be deleted.

Returns:

  • flyCallBack : A callback function that is called with the response.

Usage example:

Mirrorfly.deleteGroup(
  jid: jid,
  flyCallBack: (response) {
    // Handle the response
    print("Group deleted: $response");
  },
);

Implementation

static Future<void> deleteGroup(
    {required String jid,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance.deleteGroup(jid, flyCallBack);
}