updateGroup method

Future updateGroup(
  1. AtGroup group
)

Implementation

Future<dynamic> updateGroup(AtGroup group) async {
  try {
    var updatedGroup = await atContactImpl.updateGroup(group);
    if (updatedGroup is AtGroup) {
      updateGroupStreams(updatedGroup);
      return updatedGroup;
    } else {
      return 'something went wrong';
    }
  } catch (e) {
    print('error in updating group: $e');
    return e;
  }
}