StrokePoint class

The points returned by getStrokePoints and the input for getStrokeOutlinePoints.

Constructors

StrokePoint({required PointVector point, required void updatePressure(double)?, required double distance, required PointVector vector, required double runningLength})

Properties

distance double
The distance between the current point and the previous point.
final
hashCode int
The hash code for this object.
no setterinherited
point PointVector
The adjusted point.
getter/setter pair
pressure double
The point's pressure, or 0.5 if null.
no setter
runningLength double
The total distance so far.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vector PointVector
The vector from the current point to the previous point.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updatePressure(double pressure) → void
Update the pressure of the point.

Operators

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