Skip to main content

CustomDrawerViewModel class

CustomDrawerViewModel class helps to serve the data and to react to user's input for Custom Dialog Widget.

Functions include:

  • switchOrg
  • isPresentinSwitchableOrg
  • setSelectedOrganizationName

Inheritance

: - Object

Constructors

CustomDrawerViewModel

:

Properties

[controller] [→ ScrollController] : Scroll controller for managing scrolling behavior. ::: features final :::

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

[hasListeners] [→ bool] : Whether any listeners are currently registered. ::: features no setterinherited :::

[isBusy] [→ bool]

: ::: features no setterinherited :::

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

[selectedOrg] [→ OrgInfo?] : / Getter method to retrieve the selected organization. ::: features no setter :::

[state] [→ ViewState]

: ::: features no setterinherited :::

[switchAbleOrg] [↔ List[<[OrgInfo]>]] : Getter method to retrieve the switchAble organization. ::: features getter/setter pair :::

[targets] [→ List[<[TargetFocus]>]] : List of TargetFocus objects used for tutorial coaching. ::: features final :::

[tutorialCoachMark] [↔ TutorialCoachMark] : Instance of TutorialCoachMark responsible for providing tutorial guidance. ::: features getter/setter pair :::

Methods

[addListener][([[VoidCallback] listener]) → void ] : Register a closure to be called when the object changes. ::: features inherited :::

dispose [→ void ] : Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed). ::: features override :::

[exitAlertDialog][ [→ CustomAlertDialog] ] : returns an exit alert dialog.

[initialize][([[MainScreenViewModel] homeModel, ][[BuildContext] context]) → void ] : initializer.

[isPresentinSwitchableOrg][([[OrgInfo] switchToOrg]) [→ bool] ] : This function checks switchOrg is present in the switchAbleOrg.

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

notifyListeners [→ void ] : Call all the registered listeners. ::: features override :::

[removeListener][([[VoidCallback] listener]) → void ] : Remove a previously registered closure from the list of closures that are notified when the object changes. ::: features inherited :::

[setSelectedOrganizationName][([[OrgInfo] updatedOrganization]) → void ] : This function switches the current organization to new organization.

[setState][([[ViewState] viewState]) → void ]

: ::: features inherited :::

[switchOrg][([[OrgInfo] switchToOrg]) → void ] : This function switches the organization to the specified switchToOrg.

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

Operators

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

  1. talawa
  2. custom_drawer_view_model
  3. CustomDrawerViewModel class
custom_drawer_view_model library