EdgeGeometry class
The computed geometry of one edge: the start point plus the ordered segments that reach the target. Derive the drawable Path and hit-test rectangles from the same segments so painting and hit testing never diverge.
Constructors
-
EdgeGeometry({required Offset start, required List<
PathSegment> segments}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
PathSegment> -
The ordered segments from start to the target port anchor.
final
- start → Offset
-
The path's starting point (the source port anchor).
final
Methods
-
hitTestRects(
double tolerance) → List< Rect> -
Builds the hit-test rectangles covering the path, each expanded by
tolerance. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPath(
) → Path - Builds the drawable path.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited