texture property
The texture this line will be drawn using.
Implementation
SpriteTexture get texture => _texture;
Implementation
set texture(SpriteTexture 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;
}
}