> For the complete documentation index, see [llms.txt](https://sending-network.gitbook.io/sending.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sending-network.gitbook.io/sending.network/sdk-documentation/flutter-sdk/user.md).

# 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>
