Texture texture

The texture this line will be drawn using.

Source

Texture get texture => _texture;
void texture=(Texture texture)

Source

set texture(Texture texture) {
  _texture = texture;
  if (texture == null) {
    _cachedPaint = new Paint();
  } else {
    Matrix4 matrix = new Matrix4.identity();
    ImageShader shader = new ImageShader(texture.image,
      TileMode.repeated, TileMode.repeated, matrix.storage);

    _cachedPaint = new Paint()
      ..shader = shader;
  }
}