login method
Authentication. Updates the login credentials in Wilt that will be used for all further requests to CouchDB. Both user name and password must be set, even if one or the other is '' i.e empty. After logging in all communication with CouchDB is made using the selected authentication method.
Implementation
void login(String? user, String? password) {
if ((user == null) || (password == null)) {
throw WiltException(WiltException.loginWrongParams);
}
_user = user;
_password = password;
authenticationType = authBasic;
// Set the auth details for change notification
notificationAuthParams(_user, _password, authenticationType);
}