CubicSegment class
A cubic bezier segment like Path.cubicTo.
Constructors
- CubicSegment({required Offset control1, required Offset control2, required Offset end, String? tag})
- Creates a cubic bezier segment.
Properties
- control1 → Offset
-
The first control point of this cubic bezier segment.
final
- control2 → Offset
-
The second control point of this cubic bezier segment.
final
- end → Offset
-
The end point of this cubic bezier segment.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- tag → String?
-
The tag to indicate correspondence of this segment in animation.
finalinherited
Methods
-
drawPath(
Path path) → void -
Draws this segment on a path.
override
-
getEnd(
) → Offset -
Gets the end point of this segment.
override
-
lerpFrom(
covariant CubicSegment from, double t) → CubicSegment -
Linearly interpolate between this segment and
from
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sow(
Offset position) → CubicSegment -
Shrinks this segment to a point in
position
.override -
toCubic(
Offset start) → CubicSegment -
Converts this segment to a CubicSegment.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override