PortAnchor constructor

const PortAnchor({
  1. required PortPosition position,
  2. required Offset offset,
  3. Offset? normal,
})

Creates a port anchor.

Parameters:

  • position - The logical position (left, right, top, bottom)
  • offset - The actual offset from the node's origin where the port center should be
  • normal - Optional unit vector perpendicular to the shape edge (for connection routing)

Implementation

const PortAnchor({required this.position, required this.offset, this.normal});