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
Path createDefaultPath(ConnectionPathParameters params) {
final path = Path();
path.moveTo(params.start.dx, params.start.dy);
path.lineTo(params.end.dx, params.end.dy);
return path;
}