ComponentViewModel class Null safety
- Inheritance
- Mixed in types
Constructors
Properties
- componentRegistry ↔ ComponentRegistry
-
late, final, inherited
- context ↔ BuildContext
-
late, final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- hasListeners → bool
-
Whether any listeners are currently registered.
@protected, read-only, inherited
- loaded → bool
-
read-only
- priority ↔ int
-
late, final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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).
@mustCallSuper, inherited
-
initListeners(
) → Future< void> -
called when registering/unregistering events;
override
-
inject<
T> (DependencyInjector< T> injector) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
@protected, @visibleForTesting, inherited
-
onError(
Object error, StackTrace trace, Event event) → FutureOr< void> -
inherited
-
onLoad(
) → void -
called when the component is loaded
override
-
onUnload(
) → void -
called when the component is unloaded;
override
-
registerEvent<
T extends Event> (EventListener< T> onEvent, [int? priority]) → void -
used to register a callback to an event
override
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
send<
T extends Event> (T event) → FutureOr< void> -
sends an event onto the eventbus
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited