createPath method

  1. @override
Path createPath(
  1. PathParameters params
)
override

Creates the geometric path for drawing this connection This is the main responsibility of each connection style

Implementation

@override
Path createPath(PathParameters params) {
  return SmoothstepPathCalculator.calculatePath(
    start: params.start,
    end: params.end,
    sourcePosition: params.sourcePosition,
    targetPosition: params.targetPosition,
    offset: params.offset,
    cornerRadius: params.cornerRadius,
  );
}