layoutChildren property

  1. @protected
Iterable<LayoutItem> layoutChildren
latefinal

The items this node lays out: its direct SizedNode children.

Queried as SizedNode rather than LayoutItem because that is what a layout item is in the tree - LayoutItem exists so LayoutEngine can work on things that aren't nodes at all.

Node.query hands back live storage that is maintained in place rather than replaced, so the reference is resolved once and kept; later adds and removals show up through it.

Implementation

@protected
late final Iterable<LayoutItem> layoutChildren = query<SizedNode>();