TBaseEventViewModel<ARGUMENTS, EVENT extends Object> class abstract

Inheritance

Constructors

TBaseEventViewModel()

Properties

arguments ↔ ARGUMENTS
Holds arguments of type ARGUMENTS provided by the TViewModelBuilder._argumentBuilder.
latefinalinherited
cancelOnStreamError bool
no setter
context BuildContext?
Provides the current TViewModelBuilderState's BuildContext.
no setterinherited
disposableBuildContext DisposableBuildContext<State<StatefulWidget>>?
Provides non-leaking access to the context.
getter/setter pairinherited
events Set<EVENT>
no setter
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 TBaseViewModel has been initialised.
no setterinherited
isMounted bool
Whether the parent TViewModelBuilder is mounted.
no setterinherited
onDone VoidCallback?
no setter
onEventError → void Function(Object error, StackTrace stackTrace, EVENT event)?
no setter
onStreamError → void Function(Object error, StackTrace stackTrace)?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(EVENT event) → void
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() Future<void>
Used to perform any disposing logic for the TBaseViewModel.
override
emit(EVENT event) → void
emitAsync<RESULT>(EVENT event) Future<RESULT>
initialise({bool doSetInitialised = true}) Future<void>
Used to perform any initialising logic for the TBaseViewModel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onEvent(EVENT event) TEventHandler<EVENT>
rebuild() → void
Used to rebuild the widgets inside the parent TViewModelBuilder.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
send(EVENT event) → void
setInitialised(bool value) → void
Sets whether the TBaseViewModel has been initialised.
inherited
toString() String
A string representation of this object.
inherited

Operators

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