StrokePoint class
One sampled point along the user's drag. width is the rendered stroke width at this point in image-space px (already EMA-smoothed and velocity-modulated by DrawImageLayer.addPoint). velocity is kept for arrow direction lookback and tests that synthesize strokes.
Constructors
- StrokePoint({required Offset position, double velocity = 0, double width = 0})
-
A sample at
position.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- position → Offset
-
Where the sample is, in image pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- velocity → double
-
Smoothed speed of the drag at the sample, in image pixels per second.
final
- width → double
-
Rendered stroke width at the sample, in image pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited