Skip to main content

UserConfig class

<p>UserConfig class provides different services in the context of the User.</p> <p>Services include:</p> <ul> <li><code>userLoggedIn</code> : helps to make user logged in to the application.</li> <li><code>updateUserJoinedOrg</code> : helps to update the user joined organization.</li> <li><code>updateUserCreatedOrg</code> : helps to update the user created organization.</li> <li><code>updateUserMemberRequestOrg</code> : helps to update the User membership request for the organization.</li> <li><code>updateUserAdminOrg</code> : helps to update the Admin of the Organization.</li> <li><code>updateAccessToken</code> : helps to update the access token of an user.</li> <li><code>updateUser</code> : helps to update the user.</li> </ul>

Constructors

UserConfig ()

Properties

currentOrgOrgInfo

<span class="feature">read / write</span>

currentOrgInfoControllerStreamController<OrgInfo>

<span class="feature">read-only</span>

currentOrgInfoStreamStream<OrgInfo>

<span class="feature">read-only</span>

currentOrgNameString

<span class="feature">read-only</span>

currentUserUser

<span class="feature">read / write</span>

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

initialiseStream() void
noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

saveCurrentOrgInHive(OrgInfo saveOrgAsCurrent) void
saveUserInHive() void
toString() String

A string representation of this object.
<span class="feature">inherited</span>

updateAccessToken({required String accessToken, required String refreshToken}) Future

This function is used to updated the access token of the user.

updateUser(User updatedUserDetails) Future<bool>

This function is used to update the user details.

updateUserAdminOrg(List<OrgInfo> orgDetails) Future

This function is used to update the organization admin.

updateUserCreatedOrg(List<OrgInfo> orgDetails) Future

This function is used to update the user created organization.

updateUserJoinedOrg(List<OrgInfo> orgDetails) Future

This function is used to update the user joined organization.

updateUserMemberRequestOrg(List<OrgInfo> orgDetails) Future

This function is used to update the user request to join the organization.

userLoggedIn() Future<bool>

This function is used to log in the user.

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>