shaderCallback property
Called to creates the Shader that generates the mask.
The shader callback is called with the current size of the child so that it can customize the shader to the size and location of the child.
Implementation
// TODO(abarth): Use the delegate pattern here to avoid generating spurious
// repaints when the ShaderCallback changes identity.
ShaderCallback get shaderCallback => _shaderCallback;
Implementation
set shaderCallback(ShaderCallback value) {
assert(value != null);
if (_shaderCallback == value)
return;
_shaderCallback = value;
markNeedsPaint();
}