# User

## Modify Nickname

```dart
setDisplayName(userId: String, newDisplayName: String)
```

<table><thead><tr><th>Name</th><th width="83">Type</th><th width="303">Description</th><th>Required</th></tr></thead><tbody><tr><td>userId</td><td>String</td><td>the userId to update the nickname of</td><td>true</td></tr><tr><td>newDisplayName</td><td>String</td><td>the new display name of the user</td><td>true</td></tr></tbody></table>

## Set Profile Image

```dart
updateAvatar(userId: String, newAvatarUri: Uri, fileName: String)
```

<table><thead><tr><th width="179">Name</th><th width="86">Type</th><th width="307">Description</th><th>Required</th></tr></thead><tbody><tr><td>userId</td><td>String</td><td>the userId to update the profile picture of</td><td>true</td></tr><tr><td>newAvatarUri</td><td>String</td><td>the new profile pricture URI of the user</td><td>true</td></tr><tr><td>fileName</td><td>String</td><td>the fileName of selected image</td><td>true</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sending-network.gitbook.io/sending.network/sdk-documentation/flutter-sdk/user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
