childrenInPaintOrder property

  1. @protected
Iterable<RenderSliver> get childrenInPaintOrder

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

@protected
Iterable<RenderSliver> get childrenInPaintOrder {
  return switch (paintOrder) {
    SliverPaintOrder.firstIsTop => _childrenLastToFirst,
    SliverPaintOrder.lastIsTop => _childrenFirstToLast,
  };
}