diff --git a/client/lib/src/client.dart b/client/lib/src/client.dart index 451aee9..c4a9ca0 100644 --- a/client/lib/src/client.dart +++ b/client/lib/src/client.dart @@ -148,9 +148,13 @@ class MusicusClient { /// Change the account details for the currently used user account. /// - /// This will throw a [MusicusLoginFailedException] if the account doesn't - /// exist or the old password was wrong. - Future updateAccount(String newEmail, String newPassword) async { + /// If a parameter is null, it will not be changed. This will throw a + /// [MusicusLoginFailedException] if the account doesn't exist or the old + /// password was wrong. + Future updateAccount({ + String newEmail, + String newPassword, + }) async { assert(_credentials != null); final response = await _client.post(