VSNodeData constructor

VSNodeData({
  1. String? id,
  2. required String type,
  3. required Offset widgetOffset,
  4. required Iterable<VSInputData> inputData,
  5. required Iterable<VSOutputData> outputData,
  6. double? nodeWidth,
  7. dynamic onUpdatedConnection(
    1. VSInputData interfaceData
    )?,
  8. String? toolTip,
  9. String? title,
})

Holds all relevant node data

Implementation

VSNodeData({
  String? id,
  required this.type,
  required this.widgetOffset,
  required this.inputData,
  required this.outputData,
  this.nodeWidth,
  this.onUpdatedConnection,
  this.toolTip,
  String? title,
})  : _id = id ?? getRandomString(10),
      _title = title ?? "" {
  for (var value in inputData) {
    value.nodeData = this;
  }
  for (var value in outputData) {
    value.nodeData = this;
  }
}