setEndpoints method
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();
}