VSNodeManager constructor
VSNodeManager({})
Holds all relevant node data
Handles interactions with the data
Creates an instance of VSNodeSerializationManager to handle serializations
Implementation
VSNodeManager({
required List<dynamic> nodeBuilders,
String? serializedNodes,
Function(Map nodeJSON)? onBuilderMissing,
}) {
serializationManager = VSNodeSerializationManager(
nodeBuilders: nodeBuilders,
onBuilderMissing: onBuilderMissing,
);
if (serializedNodes != null) {
_nodes = serializationManager.deserializeNodes(serializedNodes);
}
}