createPathThroughWaypoints abstract method

Path createPathThroughWaypoints(
  1. List<Offset> waypoints,
  2. ConnectionPathParameters params
)

Creates a path 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 points
  • params: Original connection parameters for context (curvature, corner radius, etc.)

Returns: A Path that connects all waypoints according to the style's visual characteristics (e.g., smooth curves, sharp angles, etc.)

Implementation

Path createPathThroughWaypoints(
  List<Offset> waypoints,
  ConnectionPathParameters params,
);