UserConfig class
UserConfig class provides different services in the context of the User.
Services include:
userLoggedIn
: helps to make user logged in to the application.updateUserJoinedOrg
: helps to update the user joined organization.updateUserCreatedOrg
: helps to update the user created organization.updateUserMemberRequestOrg
: helps to update the User membership request for the organization.updateUserAdminOrg
: helps to update the Admin of the Organization.updateAccessToken
: helps to update the access token of an user.updateUser
: helps to update the user.
Constructors
UserConfig ()
Properties
currentOrg ↔ OrgInfo
read / write
currentOrgInfoController → StreamController<OrgInfo>
read-only
currentOrgInfoStream → Stream<OrgInfo>
read-only
currentOrgName → String
read-only
currentUser ↔ User
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
Methods
initialiseStream() void
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
saveCurrentOrgInHive(OrgInfo saveOrgAsCurrent) void
saveUserInHive() void
toString() String
A string representation of this object.
inherited
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.
inherited