AkeBaseViewModel<E extends Object?> class abstract

Base view model class.

Inheritance

Constructors

AkeBaseViewModel.new()

Properties

arguments ↔ E?
Holds arguments of type E provided by the ViewModelBuilder._argumentBuilder.
latefinal
context BuildContext?
Provides the current ViewModelBuilderState's BuildContext.
no setter
disposableBuildContext DisposableBuildContext<State<StatefulWidget>>?
Provides non-leaking access to the context.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isInitialised ValueListenable<bool>
Listenable that listens to whether the BaseViewModel has been initialised.
no setter
isMounted bool
Whether the parent ViewModelBuilder is mounted.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Used to perform any disposing logic for the BaseViewModel.
override
initialise() → dynamic
Used to perform any initialising logic for the BaseViewModel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
rebuild() → void
Used to rebuild the widgets inside the parent ViewModelBuilder.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setInitialised(bool value) → void
Sets whether the BaseViewModel has been initialised.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited