PortInstance class final
A port is a connection point on a node.
In addition to the prototype, it holds the data, links, and offset.
Constructors
- PortInstance({required PortPrototype prototype, required PortState state, Offset offset = Offset.zero})
-
PortInstance.fromJson(Map<
String, dynamic> json, Map<String, PortPrototype> portPrototypes) -
factory
Properties
- data ↔ dynamic
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
key
→ GlobalKey<
State< StatefulWidget> > -
final
-
links
↔ Set<
Link> -
getter/setter pair
- offset ↔ Offset
-
getter/setter pair
- prototype → PortPrototype
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → PortState
-
final
Methods
-
copyWith(
{dynamic data, Set< Link> ? links, PortState? state, Offset? offset}) → PortInstance -
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