willChange property

bool willChange
getter/setter pair

Whether the raster cache should be told that this painting is likely to change in the next frame.

This hint tells the compositor not to cache the layer containing this render object 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.

Implementation

bool willChange;