VSListNode constructor
VSListNode({
- String? id,
- required String type,
- required Offset widgetOffset,
- required VSInputData inputBuilder(
- int index,
- VSOutputData? connection
- required Iterable<
VSOutputData> outputData, - double? nodeWidth,
- String? title,
- String? toolTip,
- dynamic onUpdatedConnection(
- VSInputData interfaceData
- VSOutputData? referenceConnection,
List Node
Can be used to add a node that bundles multiple inputs into one output
Implementation
VSListNode({
String? id,
required String type,
required Offset widgetOffset,
required this.inputBuilder,
required Iterable<VSOutputData> outputData,
double? nodeWidth,
String? title,
String? toolTip,
Function(VSInputData interfaceData)? onUpdatedConnection,
///Can be used to set the initial connection of the first created input
VSOutputData? referenceConnection,
}) : super(
id: id,
type: type,
widgetOffset: widgetOffset,
inputData: [
inputBuilder(0, null)..connectedInterface = referenceConnection,
],
outputData: outputData,
nodeWidth: nodeWidth,
title: title,
toolTip: toolTip,
onUpdatedConnection: onUpdatedConnection,
) {
if (inputData.first.connectedInterface != null) {
_setInputs([inputData.first.connectedInterface]);
}
}