getLinkEndpointAlignment method
Calculates an alignment of link endpoint on a component from ComponentData and targetPoint (nearest link point from this component).
With no implementation the link will attach to center of the component.
Implementation
Alignment getLinkEndpointAlignment(
ComponentData componentData,
Offset targetPoint,
) {
return Alignment.center;
}