childOrder property

List<CanvasChildId> get childOrder

Immutable back-to-front snapshot of all children, including culled children.

Implementation

List<CanvasChildId> get childOrder => List.unmodifiable(
  _children.keys.toList()..sort(
    (a, b) => _children[a]!.paintOrder.compareTo(_children[b]!.paintOrder),
  ),
);