shader property Null safety
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:
- ui.Gradient and ui.ImageShader, two shader types that can be used.
Implementation
Shader? get shader => _shader;
Implementation
set shader(Shader? value) {
if (value != _shader) {
_shader = value;
markNeedsAddToScene();
}
}