VSNodeManager class

Constructors

VSNodeManager({required List nodeBuilders, String? serializedNodes, void onNodesUpdate(Map<String, VSNodeData> oldData, Map<String, VSNodeData> newData)?, dynamic onBuilderMissing(Map nodeJSON)?, List<VSNodeDataBuilder>? additionalNodes})
Holds all relevant node data

Properties

getOutputNodes Iterable<VSOutputNode>
Returns all output nodes in the current node data
no setter
hashCode int
The hash code for this object.
no setterinherited
nodeBuildersMap Map<String, dynamic>
no setter
nodes Map<String, VSNodeData>
Returns a copy of the current node data
getter/setter pair
onNodesUpdate → void Function(Map<String, VSNodeData> oldData, Map<String, VSNodeData> newData)?
This function gets called whenever the nodes get updated
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializationManager VSNodeSerializationManager
getter/setter pair

Methods

clearNodes() → void
Cleares all nodes
loadSerializedNodes(String serializedNodes) → void
Loades nodes from string and replaces current nodes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNodes(List<VSNodeData> nodeDatas) → void
Removes multiple nodes and clears all references
serializeNodes() String
Calls serializationManager.serializeNodes with the current node data and returns a String
toString() String
A string representation of this object.
inherited
updateOrCreateNodes(List<VSNodeData> nodeDatas) → void
Updates or Creates a nodes

Operators

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