updateGroup method

Future<void> updateGroup(
  1. String groupId,
  2. Map<String, dynamic> data
)

Updates group data

Implementation

Future<void> updateGroup(String groupId, Map<String, dynamic> data) async {
  try {
    await _firestore.collection(_collectionPath).doc(groupId).update(data);
  } catch (e) {
    print('Error updating group: $e');
    rethrow;
  }
}