VSInputData class abstract

Base input interface

Makes sure only correct types can be connected

Inheritance
Implementers

Constructors

VSInputData({required String type, Widget interfaceIconBuilder(BuildContext context, GlobalKey<State<StatefulWidget>> anchor, VSInterfaceData data)?, String? title, String? toolTip, VSOutputData? initialConnection})

Properties

acceptedTypes List<Type>
The list of types this input will interface with
no setter
connectedInterface VSOutputData?
The currently connected interface of this input
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interfaceColor Color
The color this interface will display in the UI
no setterinherited
interfaceIconBuilder Widget Function(BuildContext context, GlobalKey<State<StatefulWidget>> anchor, VSInterfaceData data)?
Can be used to insert you own interfaceIcon widget
getter/setter pairinherited
nodeData VSNodeData?
The parent node of this interface
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title displayed on the interface
getter/setter pairinherited
toolTip String?
A tooltip displayed on the widget
finalinherited
type String
The type of this interface
finalinherited
widgetOffset Offset?
The current offset of the interface relative to the origin of the parent (Top-Left corner)
getter/setter pairinherited

Methods

acceptInput(VSOutputData data) bool
getInterfaceIcon({required BuildContext context, required GlobalKey<State<StatefulWidget>> anchor}) Widget
The Icon displayed for this interface
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited