VSNodeManager constructor

VSNodeManager({
  1. required List nodeBuilders,
  2. String? serializedNodes,
  3. dynamic onBuilderMissing(
    1. Map nodeJSON
    )?,
})

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);
  }
}