QuadraticSegment class
A quadratic bezier curve segment.
Uses a single controlPoint to define the curve shape. The curve starts from the current point, is pulled toward controlPoint, and ends at end.
Used for:
- Rounded corners in step/smoothstep connections
- Simple curved transitions
- Inheritance
-
- Object
- PathSegment
- QuadraticSegment
Constructors
- QuadraticSegment({required Offset controlPoint, required Offset end, bool generateHitTestRects = true})
-
const
Properties
- controlPoint → Offset
-
The control point that defines the curve shape.
final
- end → Offset
-
The endpoint of this segment.
finalinherited
- generateHitTestRects → bool
-
Whether to generate hit test rectangles for this segment.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHitTestRects(
Offset start, double tolerance) → List< Rect> -
Generates hit test rectangles for this segment.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited