updateAccount method

  1. @override
Future<void> updateAccount({
  1. required Session session,
  2. String? username,
  3. String? displayName,
  4. String? avatarUrl,
  5. String? langTag,
  6. String? location,
  7. String? timezone,
})
override

Implementation

@override
Future<void> updateAccount({
  required model.Session session,
  String? username,
  String? displayName,
  String? avatarUrl,
  String? langTag,
  String? location,
  String? timezone,
}) async {
  await _client.updateAccount(
    UpdateAccountRequest(
      username: username == null ? null : StringValue(value: username),
      displayName:
          displayName == null ? null : StringValue(value: displayName),
      avatarUrl: avatarUrl == null ? null : StringValue(value: avatarUrl),
      langTag: langTag == null ? null : StringValue(value: langTag),
      location: location == null ? null : StringValue(value: location),
      timezone: timezone == null ? null : StringValue(value: timezone),
    ),
    options: _getSessionCallOptions(session),
  );
}