CubicPath class

Combines sequence of points into one Line.

Constructors

CubicPath({double threshold = 3.0, double smoothRatio = 0.65})
Line builder. threshold - Distance between two control points. smoothRatio - Ratio of line smoothing.

Properties

arcs List<CubicArc>
Returns CubicArc representation of path.
no setter
hashCode int
The hash code for this object.
no setterinherited
isDot bool
Checks if this Line is just dot.
no setter
isFilled bool
Checks if path is valid.
no setter
lines List<CubicLine>
Returns CubicLine representation of path.
no setter
points List<OffsetPoint>
Returns raw data of path.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smoothRatio double
Ratio of line smoothing. Don't have impact to performance. Values between 0 - 1. 0 - no smoothing, no flattening. 1 - best smoothing, but flattened. Best results are between: 0.5 - 0.85.
final
threshold double
Distance between two control points.
final

Methods

add(Offset point) → void
Alters path with given point.
begin(Offset point, {double velocity = 0.0}) → void
Starts path at given point. Must be called as first, before begin, end.
clear() → void
Clears all path data-.
end({Offset? point}) bool
Ends path at given point.
equals(CubicPath other) bool
Currently checks only equality of points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setScale(double ratio) → void
Sets scale of whole line.
toString() String
A string representation of this object.
inherited

Operators

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