TexturedLinePainter constructor

TexturedLinePainter(
  1. List<Offset> _points,
  2. List<Color> colors,
  3. List<double> widths,
  4. SpriteTexture texture,
  5. List<double>? textureStops,
)

Creates a painter that draws a polyline with a texture.

Implementation

TexturedLinePainter(
  this._points,
  this.colors,
  this.widths,
  SpriteTexture texture,
  this.textureStops,
) {
  this.texture = texture;
}