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
- ChangeNotifier
- BaseModel
- CustomDrawerViewModel
Constructors
Properties
controller → ScrollController
final
hashCode → int
The hash code for this object.
read-onlyinherited
hasListeners → bool
Whether any listeners are currently registered.
read-onlyinherited
isBusy → bool
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
selectedOrg → OrgInfo?
read-only
state → ViewState
read-onlyinherited
switchAbleOrg ↔ List<OrgInfo>
read / write
targets → List<TargetFocus>
final
tutorialCoachMark ↔ TutorialCoachMark
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