getExactBendPoints method

  1. @override
List<Offset>? getExactBendPoints(
  1. ConnectionPathParameters params
)
override

Get exact bend points for styles that support it (e.g., step connections) Returns null if the style doesn't support exact bend point calculation

Implementation

@override
List<Offset>? getExactBendPoints(ConnectionPathParameters params) {
  // Return the waypoints (without start and end) for bend detection
  return SmoothstepPathCalculator.getBendPoints(
    start: params.start,
    end: params.end,
    sourcePosition: params.sourcePosition,
    targetPosition: params.targetPosition,
    offset: params.offset,
  );
}