sortedFirstPaintChild property

RenderBox? get sortedFirstPaintChild

The first child to paint, considering paint order and reversal.

Returns the appropriate first child based on reversePaint setting. If children are sorted, uses the sorted order; otherwise uses natural order.

Implementation

RenderBox? get sortedFirstPaintChild {
  return reversePaint
      ? (_lastSortedChild ?? lastChild)
      : (_firstSortedChild ?? firstChild);
}