SyncScrollControllerGroup class
Internal sync-scroll controller group used by s_packages.
This is a maintained fork of the upstream package with additional safety for modern Flutter scroll lifecycles (multiple positions, controller churn, explicit group disposal).
Constructors
- SyncScrollControllerGroup({double initialScrollOffset = 0.0})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialScrollOffset → double
-
final
- isDisposed → bool
-
Whether this group has been disposed.
no setter
- offset → double
-
Current synchronized offset.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAndGet(
) → ScrollController - Creates and returns a new linked ScrollController.
-
addOffsetChangedListener(
VoidCallback onChanged) → void - Adds a callback triggered when group offset changes.
-
animateTo(
double targetOffset, {required Curve curve, required Duration duration}) → Future< void> -
Animates all attached linked controllers to
targetOffset. -
dispose(
) → void - Disposes all controllers created by this group and the internal notifier.
-
jumpTo(
double value) → void -
Jumps all attached linked controllers to
value. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeOffsetChangedListener(
VoidCallback listener) → void - Removes a callback previously added via addOffsetChangedListener.
-
resetScroll(
) → void - Resets all attached linked controllers to offset 0.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited