NodeInstance class final
A node is a component in the node editor.
It holds the instances of the ports and fields, the offset, the data and the state.
Constructors
-
NodeInstance({required String id, required NodePrototype prototype, required Map<
String, PortInstance> ports, required Map<String, FieldInstance> fields, required NodeState state, bool forceRecompute = true, Offset offset = Offset.zero}) -
NodeInstance.fromJson(Map<
String, dynamic> json, {required Map<String, NodePrototype> nodePrototypes, required Map<String, DataHandler> dataHandlers}) -
factory
Properties
- builtHeaderStyle ↔ FlNodeHeaderStyle
-
getter/setter pair
- builtStyle ↔ FlNodeStyle
-
getter/setter pair
-
fields
→ Map<
String, FieldInstance> -
final
- forceRecompute ↔ bool
-
This vairable is crucial to ensure that nodes are rendered correctly after a project load.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
key
→ GlobalKey<
State< StatefulWidget> > -
final
- offset ↔ Offset
-
getter/setter pair
-
ports
→ Map<
String, PortInstance> -
final
- prototype → NodePrototype
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → NodeState
-
final
Methods
-
copyWith(
{String? id, Color? color, Map< String, PortInstance> ? ports, Map<String, FieldInstance> ? fields, NodeState? state, dynamic onRendered(NodeInstance node)?, Offset? offset}) → NodeInstance -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
Map< String, DataHandler> dataHandlers) → Map<String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited