GhostBaseResolver<TKey> class abstract

Paint-time read contract for edge ghosts. Held by RenderSliverTree in applyPaintTransform, childMainAxisPosition, paint, and the hit-test admission path. Same idiom as Plan A's AnimationReader — a narrow abstract interface lets paint-side tests stub it without constructing a full ghost registry.

Implementers

Constructors

GhostBaseResolver()

Properties

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 setter
hashCode int
The hash code for this object.
no setterinherited
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).
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).
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