setLocationSharingEnabled method
Enables or disables location sharing for a group
Implementation
Future<void> setLocationSharingEnabled(String groupId, bool enabled) async {
try {
await _firestore.collection(_collectionPath).doc(groupId).update({
'locationSharingEnabled': enabled,
});
} catch (e) {
print('Error updating location sharing setting: $e');
rethrow;
}
}