shader property

Shader shader

The shader to use when stroking or filling a shape.

When this is null, the color is used instead.

See also:

Implementation

Shader get shader {
  if (_objects == null)
    return null;
  return _objects[_kShaderIndex] as Shader;
}
void shader= (Shader value)

Implementation

set shader(Shader value) {
  _objects ??= List<dynamic>(_kObjectCount);
  _objects[_kShaderIndex] = value;
}