createSegments abstract method

({List<PathSegment> segments, Offset start}) createSegments(
  1. ConnectionPathParameters params
)

Creates the path segments for this connection.

This is the ONLY method that subclasses MUST implement.

Returns a tuple of:

  • start: The starting point of the path
  • segments: The list of path segments

All derived operations (path, hit test, bend points) use the segments returned by this method via static utility methods.

Implementation

({Offset start, List<PathSegment> segments}) createSegments(
  ConnectionPathParameters params,
);