SmoothStepConnectionStyle class
Smooth step connection style (90-degree turns with rounded corners)
Similar to step connections but with rounded corners for a smoother appearance.
- Inheritance
-
- Object
- ConnectionStyle
- StepConnectionStyle
- SmoothStepConnectionStyle
- Available extensions
Constructors
- SmoothStepConnectionStyle()
-
const
Properties
- bendThreshold → double
-
Get bend detection threshold angle in radians
Used for detecting significant direction changes in the path
no setterinherited
- 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 setterinherited
- 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 styleno setter - minBendDistance → double
-
Get minimum distance between bend points as multiplier of tolerance
no setterinherited
- needsBendDetection → bool
-
Whether this connection style needs bend detection for hit testing optimization
no setterinherited
- 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
inherited
-
createPath(
PathParameters params) → Path -
Creates the geometric path for drawing this connection
This is the main responsibility of each connection style
override
-
getExactBendPoints(
PathParameters 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
inherited
-
getSampleCount(
double pathLength) → int -
Get number of samples to use for bend detection based on path length
inherited
-
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