SlideComposer<TKey, TData> class

Implemented types

Constructors

SlideComposer({required TreeController<TKey, TData> controller})

Properties

baselineSlot SlideBaselineSlot<TKey>
final
ghosts GhostRegistry<TKey, TData>
final
hasGhosts bool
Whether any edge ghosts are currently active. Render-side fast paths use this to skip ghost-related work when there are none.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isBaselineStaged bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

baseFor(TKey key, ViewportSnapshot viewport) double?
Returns the live scroll-space base Y for key if it is currently an edge ghost, null otherwise. Caller composes the result with the row's slide delta separately (the resolver is unaware of per-frame slide progress).
override
consumeBaseline() → ({Curve curve, Duration duration, Map<TKey, ({double x, double y})> offsets, ViewportSnapshot viewport})?
entryFor(TKey key) → ({Curve curve, Duration duration, ViewportEdge edge})?
Returns the edge entry for key if it is currently a ghost. Used by paint/hit-test sites that need both the side AND timing info (the resolver-only baseFor discards the side after resolving).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebindController(TreeController<TKey, TData> controller) → void
Re-binds the registry to a new controller on RenderSliverTree's controller setter. Caller separately calls reset to drop any state staged against the old controller's keys.
reset() → void
Discards any staged baseline and clears the ghost registry. Used on controller swap so state staged against the old controller doesn't leak into the new one.
stageBaseline({required Map<TKey, ({double x, double y})> offsets, required ViewportSnapshot viewport, required Duration duration, required Curve curve}) bool
toString() String
A string representation of this object.
inherited

Operators

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