childrenInPaintOrder property

  1. @override
Iterable<RenderSliver> childrenInPaintOrder
override

Provides an iterable that walks the children of the viewport, in the order that they should be painted.

This should be the reverse order of childrenInHitTestOrder.

Implementation

@override
Iterable<RenderSliver> get childrenInPaintOrder {
  final List<RenderSliver> children = <RenderSliver>[];
  RenderSliver? child = lastChild;
  while (child != null) {
    children.add(child);
    child = childBefore(child);
  }
  return children;
}