willChangeHint property Null safety
Hints that the painting in this layer is likely to change next frame.
This hint tells the compositor not to cache this layer because the cache will not be used in the future. If this hint is not set, the compositor will apply its own heuristics to decide whether this layer is likely to be reused in the future.
The scene must be explicitly recomposited after this property is changed (as described at Layer).
Implementation
bool get willChangeHint => _willChangeHint;
Implementation
set willChangeHint(bool value) {
if (value != _willChangeHint) {
_willChangeHint = value;
markNeedsAddToScene();
}
}