addRepaintBoundaries property

bool addRepaintBoundaries
final

Whether to wrap each row in a RepaintBoundary.

Defaults to true, matching ListView/SliverList convention: rows are translated as whole units during scrolling and slide animations, so boundaries let the raster cache reuse each row's display list instead of re-recording every visible row on every repaint frame. Set to false for rows so trivial that the boundary's layer overhead outweighs the caching win.

Implementation

final bool addRepaintBoundaries;