Skip to main content

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] : Retrieves the current organization information. ::: features getter/setter pair :::

[currentOrgInfoController] [→ StreamController[<[OrgInfo]>]] : Retrieves the stream controller for current organization information. ::: features no setter :::

[currentOrgInfoStream] [→ Stream[<[OrgInfo]>]] : Retrieves the stream of current organization information. ::: features no setter :::

[currentOrgName] [→ String] : Retrieves the name of the current organization. ::: features no setter :::

[currentUser] [↔ User] : Retrieves the current user. ::: features getter/setter pair :::

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[loggedIn] [→ bool] : Checks if a user is logged in. ::: features no setter :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

Methods

initialiseStream [→ void ] : initialise.

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::

[saveCurrentOrgInHive][([[OrgInfo] saveOrgAsCurrent]) → void ] : save current organization details in hive.

saveUserInHive [→ void ] : save user in hive.

[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::

[updateAccessToken][ [→ Future<[void>]] ] : Updates the access token of the user.

[updateUser][([[User] updatedUserDetails]) [→ Future[<[bool]>]] ] : Updates the user details.

[updateUserAdminOrg][([[List[<[OrgInfo]>]] orgDetails]) [→ Future<[void>]] ] : Updates the organization admin.

[updateUserCreatedOrg][([[List[<[OrgInfo]>]] orgDetails]) [→ Future<[void>]] ] : Updates the user created organization.

[updateUserJoinedOrg][([[List[<[OrgInfo]>]] orgDetails]) [→ Future<[void>]] ] : Updates the user joined organization.

[updateUserMemberRequestOrg][([[List[<[OrgInfo]>]] orgDetails]) [→ Future<[void>]] ] : Updates the user request to join the organization.

[userLoggedIn][ [→ Future[<[bool]>]] ] : This function is used to log in the user.

[userLogOut][ [→ Future<[void>]] ] : Logs out the current user.

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

  1. talawa
  2. user_config
  3. UserConfig class
user_config library