VSNodeData constructor
VSNodeData({
- String? id,
- required String type,
- required Offset widgetOffset,
- required Iterable<
VSInputData> inputData, - required Iterable<
VSOutputData> outputData, - double? nodeWidth,
- dynamic onUpdatedConnection(
- VSInputData interfaceData
- String? toolTip,
- 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;
}
}