ScrollOrchestrator<TKey, TData> class
Scroll orchestration. See library docs.
Constructors
-
ScrollOrchestrator({required TreeController<
TKey, TData> controller, required TickerProvider vsync})
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
-
animateScrollToKey(
TKey key, {required ScrollController scrollController, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, double alignment = 0.0, AncestorExpansionMode ancestorExpansion = AncestorExpansionMode.immediate, double extentEstimator(TKey key)?, double sliverBaseOffset = 0.0}) → Future< bool> -
Animates
scrollControllerto revealkey. See TreeController.animateScrollToKey for the full contract. -
dispose(
) → void -
No-op forward-compat hook. Today the orchestrator owns no disposable
resources (the AnimationController inside
_animatedConcurrentScrollis a method-local that disposes itself when the loop completes). -
ensureAncestorsExpanded(
TKey key) → int -
Synchronously expands every collapsed ancestor of
key. -
extentOf(
TKey key, {double extentEstimator(TKey key)?}) → double -
Returns the best-known full (non-animated) extent for
key: measured if available, else estimator, else defaultExtent. -
fullOffsetAt(
int index) → double -
Returns the prefix-sum full-extent offset up to visible index
index(exclusive). Public so the controller can access it via a thin shim if any other path inside the controller still needs it. -
invalidatePrefix(
) → void -
Marks the prefix sum stale. Called from
_order'sonOrderMutatedcallback (via the controller wrapper) and fromsetFullExtent/_purgeNodeDatawhen the stored extent changes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scrollOffsetOf(
TKey key, {double extentEstimator(TKey key)?}) → double? -
Returns the sliver-space scroll offset of
key, or null ifkeyis not in the current visible order. See TreeController.scrollOffsetOf for the full contract. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited