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

Constructors

CustomDrawerViewModel ()

Properties

controllerScrollController

final

hashCodeint

The hash code for this object.
read-onlyinherited

hasListenersbool

Whether any listeners are currently registered.
read-onlyinherited

isBusybool

read-onlyinherited

runtimeTypeType

A representation of the runtime type of the object.
read-onlyinherited

selectedOrgOrgInfo?

read-only

stateViewState

read-onlyinherited

switchAbleOrgList<OrgInfo>

read / write

targetsList<TargetFocus>

final

tutorialCoachMarkTutorialCoachMark

read / write

Methods

addListener(VoidCallback listener) void

Register a closure to be called when the object changes.
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).
override

initialize(MainScreenViewModel homeModel, BuildContext context) void
isPresentinSwitchableOrg(OrgInfo switchToOrg) bool

This function checks switchOrg is present in the switchAbleOrg.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

notifyListeners() void

Call all the registered listeners.
override

removeListener(VoidCallback listener) void

Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited

setSelectedOrganizationName(OrgInfo updatedOrganization) void

This function switches the current organization to new organization.

setState(ViewState viewState) void

inherited

switchOrg(OrgInfo switchToOrg) void

This function switch the current organization to another organization, if the organization(want switch to) is present.

toString() String

A string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator.
inherited