createSegmentsThroughWaypoints abstract method
({List<PathSegment> segments, Offset start})
createSegmentsThroughWaypoints(
- List<
Offset> waypoints, - ConnectionPathParameters params
Creates segments through the given waypoints.
This method is called when control points are provided or when the algorithmic path has been converted to waypoints for editing.
Parameters:
waypoints: List of points the path should pass through, including start and end pointsparams: Original connection parameters for context (curvature, corner radius, etc.)
Returns: A tuple of start and segments that connect all waypoints according to the style's visual characteristics.
Implementation
({Offset start, List<PathSegment> segments}) createSegmentsThroughWaypoints(
List<Offset> waypoints,
ConnectionPathParameters params,
);