updateProfile method
Persists data for userId (merge-update semantics).
Implementation
@override
Future<void> updateProfile(String userId, Map<String, dynamic> data) async {
try {
await _docRef(userId).set(data, SetOptions(merge: true));
} catch (error) {
throw Exception(
'FirebaseProfileSource.updateProfile failed for "$userId": $error',
);
}
}