isComplex property

bool isComplex
final

Whether the painting is complex enough to benefit from caching.

The compositor contains a raster cache that holds bitmaps of layers in order to avoid the cost of repeatedly rendering those layers on each frame. If this flag is not set, then the compositor will apply its own heuristics to decide whether the layer containing this widget is complex enough to benefit from caching.

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

Implementation

final bool isComplex;