shader property

Shader? shader

The shader to apply to the children.

The origin of the shader (e.g. of the coordinate system used by the from and to arguments to ui.Gradient.linear) is at the top left of the maskRect.

The scene must be explicitly recomposited after this property is changed (as described at Layer).

See also:

Implementation

Shader? get shader => _shader;
void shader=(Shader? value)

Implementation

set shader(Shader? value) {
  if (value != _shader) {
    _shader = value;
    markNeedsAddToScene();
  }
}