paintOrder property

SliverPaintOrder paintOrder
final

The order in which to paint the slivers; equivalently, the order in which to arrange them in the z-direction.

Whichever order the slivers are painted in, they will be hit-tested in the opposite order.

To think of this as an ordering in the z-direction: whichever sliver is painted last (and hit-tested first) is on top, because it will paint over other slivers if there is overlap. Similarly, whichever sliver is painted first (and hit-tested last) is on the bottom.

Defaults to SliverPaintOrder.firstIsTop.

Implementation

final SliverPaintOrder paintOrder;