The shader to use when stroking or filling a shape.
When this is null, the color is used instead.
See also:
- Gradient, a shader that paints a color gradient.
- ImageShader, a shader that tiles an Image.
- colorFilter, which overrides shader.
- color, which is used if shader and colorFilter are null.
Source
Shader get shader { if (_objects == null) return null; return _objects[_kShaderIndex]; }
Source
set shader(Shader value) { _objects ??= new List<dynamic>(_kObjectCount); _objects[_kShaderIndex] = value; }