updateProfile method

Future<void> updateProfile(
  1. String? displayName,
  2. String? photoUrl
)

Implementation

Future<void> updateProfile(String? displayName, String? photoUrl) async {
  assert(displayName != null || photoUrl != null);
  await _post('update', {
    if (displayName != null) 'displayName': displayName,
    if (photoUrl != null) 'photoUrl': photoUrl,
  });
}