DrawingStroke class

A freehand stroke.

Annotations

Constructors

DrawingStroke({required List<StrokePoint> points, required Color color, required double size, StrokeTool tool = StrokeTool.pen})
Creates a stroke.
const

Properties

color → Color
Brush colour (ignored by the eraser).
final
hashCode → int
The hash code for this object.
no setteroverride
points → List<StrokePoint>
Sampled points in drawing order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
Brush width in canvas units.
final
tool → StrokeTool
Brush kind.
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.
override