createDefaultPath method
Creates the default algorithmic path when no control points are provided.
Subclasses should implement this to define their default routing algorithm. This can be overridden to return a simple path or to use sophisticated routing logic similar to the non-editable version of the style.
The default implementation creates a straight line from start to end.
Implementation
@override
Path createDefaultPath(ConnectionPathParameters params) {
// Use the standard smooth step algorithm when no control points exist
return SmoothstepPathCalculator.calculatePath(
start: params.start,
end: params.end,
sourcePosition: params.sourcePosition,
targetPosition: params.targetPosition,
offset: params.offset,
cornerRadius: params.cornerRadius,
);
}