nodesInPaintOrder function

List<Node> nodesInPaintOrder(
  1. List<Node> children
)

Sibling order is paint order:

  • first child paints behind
  • last child paints in front

Implementation

List<Node> nodesInPaintOrder(List<Node> children) => children;