childrenInHitTestOrder property

  1. @protected
Iterable<RenderSliver> get childrenInHitTestOrder

Provides an iterable that walks the children of the viewport, in the order that hit-testing should use.

This should be the reverse order of childrenInPaintOrder.

Implementation

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