getGroupJid static method
Retrieves the group JID associated with a given group ID.
This static method asynchronously retrieves the group JID
associated with the specified groupId. The group JID uniquely identifies
the group in the Mirrorfly chat platform.
If the operation is successful, the method returns a String representing
the group JID. If the operation fails, null is returned.
bbitit
Throws an error if groupId is null.
Example usage:
String? groupJid = await Mirrorfly.getGroupJid(groupId: 'your_group_id');
if (groupJid != null) {
print('Group JID: $groupJid');
} else {
print('Failed to retrieve group JID');
}
Implementation
static Future<String?> getGroupJid({required String groupId}) {
return FlyChatFlutterPlatform.instance.getGroupJid(groupId);
}