ConnectionRouter class

Turns connections into drawable paths.

Shared by the painter and by pointer hit-testing so a click always lands on the curve that was actually drawn.

Constructors

ConnectionRouter({required NodeGraph graph, required Size sizeOf(GraphNode node), ConnectionStyle style = ConnectionStyle.curved, double curvature = ConnectionPath.defaultCurvature, double stub = ConnectionPath.defaultStub, double cornerRadius = ConnectionPath.defaultCornerRadius})
const

Properties

cornerRadius → double
final
curvature → double
final
graph → NodeGraph
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeOf → Size Function(GraphNode node)
final
stub → double
final
style → ConnectionStyle
final

Methods

endpointsOf(NodeConnection connection) → ConnectionEndpoints?
Scene-space endpoints, or null if either end no longer exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scenePath(NodeConnection connection) → Path?
toString() → String
A string representation of this object.
inherited

Operators

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