updateDisplayName method
- String? displayName
Updates the display name.
displayName New display name.
Returns a Future that completes when updated.
Example:
await user.updateDisplayName('New Name');
Implementation
Future<void> updateDisplayName(String? displayName) async {
if (displayName == null || displayName == this.displayName) {
return;
}
await _userHelper.updateProfileNameHelper(
client: createClient(_auth.app),
user: this,
displayName: displayName,
);
await reload();
}