isComplex property Null safety
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 this layer 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;