willChangeHint property

bool willChangeHint

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).


bool get willChangeHint => _willChangeHint;
void willChangeHint=(bool value)


set willChangeHint(bool value) {
  if (value != _willChangeHint) {
    _willChangeHint = value;