TexturedLinePainter class

Draws a polyline to a Canvas from a list of points using the provided SpriteTexture.

Constructors

TexturedLinePainter(List<Offset> _points, List<Color> colors, List<double> widths, [SpriteTexture texture, List<double> textureStops])
Creates a painter that draws a polyline with a texture.

Properties

calculatedTextureStops List<double>
The textureStops used if no explicit texture stops has been provided.
read-only
colors List<Color>
The color of each point on the polyline. The color of the line will be interpolated between the points.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
length double
The length of the line.
read-only
points List<Offset>
The points that makes up the polyline.
read / write
removeArtifacts bool
If true, the textured line attempts to remove artifacts at sharp corners on the polyline.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
texture SpriteTexture
The texture this line will be drawn using.
read / write
textureLoopLength double
The length, in points, that the texture is stretched to. If the textureLoopLength is shorter than the line, the texture will be looped.
read / write
textureStopOffset double
The offset of the texture on the line.
read / write
textureStops List<double>
Defines the position in the texture for each point on the polyline.
read / write
transferMode BlendMode
The TransferMode used to draw the line to the Canvas.
read / write
widths List<double>
The width of the line at each point on the polyline.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paint(Canvas canvas) → void
Paints the line to the canvas.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited