setEndpoints method

void setEndpoints(
  1. Offset start,
  2. Offset end
)

Sets the position of both first and last point of the link.

The points lie on the source and target components.

Implementation

void setEndpoints(Offset start, Offset end) {
  linkPoints[0] = start;
  linkPoints[linkPoints.length - 1] = end;
  notifyListeners();
}