SankeyNode class

A node in the Sankey diagram.

Each node has a unique id and an optional label for display. Use displayLabel to get a non-null label (falls back to id.toString()).

Constructors

SankeyNode({required dynamic id, String? label})

Properties

bottom double
Bottom edge y-coordinate after layout
getter/setter pair
depth int
Distance from source nodes (horizontal depth)
getter/setter pair
displayLabel String
Returns the label if set, otherwise falls back to id.toString()
no setter
fixedValue double?
Optional fixed value override
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int
Distance to sink nodes
getter/setter pair
id → dynamic
Unique identifier for this node
final
index int
Index assigned during layout computation
getter/setter pair
label String?
Optional display label for the node
getter/setter pair
layer int
Horizontal column index after layout
getter/setter pair
left double
Left edge x-coordinate after layout
getter/setter pair
Right edge x-coordinate after layout
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Links where this node is the source
getter/setter pair
Links where this node is the target
getter/setter pair
top double
Top edge y-coordinate after layout
getter/setter pair
value double
Computed flow value through this node
getter/setter pair

Methods

contains(Offset pt) bool
Returns true if the given point is within this node's bounds
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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