layoutChildren property

  1. @protected
Iterable<LayoutItem> layoutChildren
latefinal

The items this node lays out: its direct SpatialNode children, except those inheriting this node's shape.

Queried as SpatialNode: LayoutItem is also implemented by non-nodes.

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<SpatialNode>() //
        .where((child) => !identical(child.size, _size));