createGroup method

Future createGroup(
  1. AtGroup atGroup
)

Implementation

Future<dynamic?> createGroup(AtGroup atGroup) async {
  try {
    AtGroup? group = await atContactImpl.createGroup(atGroup);
    if (group is AtGroup) {
      await updateGroupStreams(group);
      return group;
    }
  } catch (e) {
    print('error in creating group: $e');
    return;
  }
}