willChange property

bool willChange

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 widget 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 the layer is likely to be reused in the future.

This flag can't be set to true if both painter and foregroundPainter are null because this flag will be ignored in such case.


final bool willChange;