PortAnchor constructor
const
PortAnchor({
- required PortPosition position,
- required Offset offset,
- 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 benormal- Optional unit vector perpendicular to the shape edge (for connection routing)
Implementation
const PortAnchor({required this.position, required this.offset, this.normal});