NodeRegistry class

In the SDK we are not using GetIt, so this singleton should help making the nodes available when they are needed.

Constructors

NodeRegistry([Map<String, BaseNode>? registry])
A private constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
getNodeByID<T extends BaseNode>(String id) → T
getNodeByIdOrNull(String id) → BaseNode?
Returns the node with the given id.
getNodes() Map<String, BaseNode>
Returns the registry of nodes.
hasNodeID(String id) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNodes(Map<String, BaseNode> nodes) → void
Takes a map of nodes, clears the registry and adds these nodes to it.
toString() String
A string representation of this object.
inherited

Operators

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