Node class mixin

Implementers

Constructors

Node()

Properties

$hasReferences → bool
no setter
$id → int
Returns the identity hash code of this node.
no setter
$isActive → bool
no setter
$json → Map<String, dynamic>
no setter
$metadata ↔ Map<String, dynamic>
getter/setter pair
$pool ↔ NodePool?
getter/setter pair
$referenceCount ↔ int
getter/setter pair
$rootNode ↔ bool
Whether this node is a root node. If true, it will not be destroyed when depending nodes are destroyed.
getter/setter pair
$sourceCodeFile → String?
no setter
$sourceFile → String?
no setter
$tag ↔ Object?
The tag of the node.
getter/setter pair
$traits → Set<Type>
Returns the traits implemented by this node.
no setter
hashCode → int
The hash code for this object.
no setterinherited
logger → PLogger
Returns the logger for this node.
no setter
nodeName → String
The name of the node. You can use &4chat &(#FF00FF)colors here.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

$allInstanceFields([Type? type]) → Iterable
$allInstanceMethods([Type? type]) → Iterable
$dependencyFields() → Iterable
$hasTrait(Type trait) → bool
Returns whether this node has the given trait.
destroy() → Future<void>
destroyAllOfTypeAndTag() → Future<void>
destroyWithStarter() → Future<Future<void> Function()>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restart() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

$hasTraitOf(Type t, Type trait) → bool
$nodeAnnotation<T>(Type nodeType) → T?
$traitsOf(Type t) → Set<Type>