createPath method

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

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

Implementation

@override
Path createPath(ConnectionPathParameters params) {
  final path = Path();
  path.moveTo(params.start.dx, params.start.dy);

  _createStraightPath(
    path,
    params.start,
    params.end,
    params.offset,
    params.sourcePort,
    params.targetPort,
  );

  return path;
}