VSWidgetNode constructor

VSWidgetNode({
  1. String? id,
  2. required String type,
  3. required Offset widgetOffset,
  4. required VSOutputData outputData,
  5. required dynamic setValue(
    1. dynamic
    ),
  6. required dynamic getValue(),
  7. required Widget child,
  8. String? title,
  9. String? toolTip,
  10. dynamic onUpdatedConnection(
    1. VSInputData interfaceData
    )?,
})

Widget Node

Can be used to add a custom UI component to a node

Implementation

VSWidgetNode({
  String? id,
  required String type,
  required Offset widgetOffset,
  required VSOutputData outputData,
  required this.setValue,
  required this.getValue,
  required this.child,
  String? title,
  String? toolTip,
  Function(VSInputData interfaceData)? onUpdatedConnection,
}) : super(
        id: id,
        type: type,
        widgetOffset: widgetOffset,
        inputData: const [],
        outputData: [outputData],
        title: title,
        toolTip: toolTip,
        onUpdatedConnection: onUpdatedConnection,
      );