createPathThroughWaypoints method

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

Creates a path through the given waypoints.

Deprecated: Use createSegmentsThroughWaypoints instead. This method is kept for backward compatibility.

Implementation

Path createPathThroughWaypoints(
  List<Offset> waypoints,
  ConnectionPathParameters params,
) {
  final result = createSegmentsThroughWaypoints(waypoints, params);
  return buildPath(result.start, result.segments);
}