PortAnchor class

Defines a port anchor point on a node shape.

A port anchor specifies where a port should be positioned on a shape and provides information for connection routing.

Constructors

PortAnchor({required PortPosition position, required Offset offset, Offset? normal})
Creates a port anchor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
normal Offset?
Optional unit vector perpendicular to the shape edge at this anchor point.
final
offset Offset
The actual offset from the node's origin where the port center should be positioned.
final
position PortPosition
The logical position of this port (left, right, top, bottom).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited