notifyScrollableChanged method

void notifyScrollableChanged()

Re-points the live drag session's scroll subscription at the scrollable's current ScrollPosition.

ScrollableState swaps its position when the physics runtimeType changes (the physics: isDragging ? const NeverScrollableScrollPhysics() : ... pattern does this on the first drag notification) and publishes the swap through its inherited scope, so call this from didChangeDependencies in any widget that resolved the scrollable with Scrollable.of/maybeOf. Optional for correctness (the session also re-validates the position on every pointer sample and autoscroll tick); it removes the latency between the swap and the next pointer event, during which an external scroll would leave the target stale. A no-op without a live session. SliverReorderableTree calls it.

Implementation

void notifyScrollableChanged() {
  _session?.resyncScroll();
}