updateProfile method

  1. @override
Future<void> updateProfile(
  1. String userId,
  2. Map<String, dynamic> data
)
override

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',
    );
  }
}