ViewModeProjection class

Projects the input hierarchy onto the list of root nodes visible in a given ViewMode — the code counterpart of the View Mode projection described in CONTEXT.md.

The projection does not flatten or mutate the input; it only decides which nodes occupy the root of the rendered list. Flattening (expand/collapse) is a separate downstream step (FlattenService).

Constructors

ViewModeProjection()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

project<T>({required List<Node<T>> nodes, required ViewMode mode}) List<Node<T>>
Returns the root-level nodes to display for mode: