StepConnectionStyle class

Step connection style (90-degree turns without rounded corners)

Creates connections with sharp 90-degree turns that follow a predictable step pattern based on port positions.

Inheritance
Implementers
Available extensions

Constructors

StepConnectionStyle()
const

Properties

bendThreshold double
Get bend detection threshold angle in radians Used for detecting significant direction changes in the path
no setteroverride
defaultHitTolerance double
Default hit tolerance for this connection style Some styles may need different tolerances based on their geometry
no setterinherited
displayName String
Human-readable display name
no setteroverride
hasExactBendPoints bool
Whether this connection style has predictable bend points that can be calculated exactly
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this connection style
no setteroverride
isBuiltIn bool

Available on ConnectionStyle, provided by the ConnectionStyleExtension extension

Check if this is a built-in connection style
no setter
minBendDistance double
Get minimum distance between bend points as multiplier of tolerance
no setteroverride
needsBendDetection bool
Whether this connection style needs bend detection for hit testing optimization
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createHitTestPath(Path originalPath, double tolerance) Path
Creates an expanded path for hit testing The base implementation provides a simple stroke-based expansion
override
createOptimizedHitTestPath(List<Offset> waypoints, double tolerance) Path
Create optimized hit test path from exact waypoints
createPath(ConnectionPathParameters params) Path
Creates the geometric path for drawing this connection This is the main responsibility of each connection style
override
getExactBendPoints(ConnectionPathParameters params) List<Offset>?
Get exact bend points for styles that support it (e.g., step connections) Returns null if the style doesn't support exact bend point calculation
override
getSampleCount(double pathLength) int
Get number of samples to use for bend detection based on path length
override
isEquivalentTo(ConnectionStyle other) bool
Check if two connection styles are equivalent This is used for caching decisions and theme comparisons
inherited
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