Node class abstract

The base class for all nodes.

It is used to create nodes that can be used to store data and perform actions.

If you want a more complete node you can use NodeInterface.

Implementers

Constructors

Node({required ValueKey? key})

Properties

computedSignals → List<BaseComputed>
All computed signals.
no setter
hashCode → int
The hash code for this object.
no setterinherited
initialized → bool
no setter
isClosed → bool
no setter
key → ValueKey?
final
readable → dynamic
This is the readable version of the node It is used to access the signals of the node directly by its value.
no setter
runtimeKey → Key
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signals → List<BaseSignal>
All non-computed signals.
no setter

Methods

attach(InheritedTrinityScope scope) → bool
Returns true if the node was previously initialized, false otherwise
findNode<N extends NodeInterface>({Key? key}) → N
findNodeOrNull<N extends NodeInterface>({Key? key}) → N?
isSignalRegistered(BaseSignal signal) → bool
We use this to improve optimization
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose() → void
When the NodeProvider is disposed
onInit() → void
First point of entry for the node, the scope is already available
onReady() → void
After the first frame, the UI context is ready
registerSignal<S extends BaseSignal>(S signal) → S
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

buildRuntimeKey(Type type, [Key? key]) → Key
Generates the internal Key used in the registry for a given type and optional key.