Flattener<T> class
Owns the flat-list cache and the incremental-vs-rebuild decision.
The caller pushes the current inputs each build via update; the Flattener projects the input for the ViewMode (see ViewModeProjection), flattens it, and decides whether a single-node change can be applied incrementally or a full rebuild is required. It reads caller-owned state (the Expanded Set) but never mutates it (ADR-0002).
Constructors
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
-
update(
{required List< Node< data, required ViewMode mode, required Set<T> >String> ? expandedIds}) → FlattenResult<T> - Recomputes the visible flat list for the given inputs, reusing the cache and applying an incremental update when exactly one node's expansion changed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited