ScrollToId class

Constructors

ScrollToId({ScrollController? scrollController})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollContentsList List<ScrollContentWithKey>
getter/setter pair
scrollController ScrollController?
final
scrollDirection Axis?
getter/setter pair

Methods

animateTo(String id, {required Duration duration, required Curve curve}) Future<void>
This function is to scroll with animation. The first argument is id(String), not height(double).
animateToBefore({required Duration duration, required Curve curve}) Future<void>
This function is to scroll to before id with animation.
animateToNext({required Duration duration, required Curve curve}) Future<void>
This function is to scroll to next id with animation.
idPosition() String?
Get id by scroll position
jumpTo(String id) Future<void>
This function is to jump. The first argument is id(String), not size(double).
jumpToBefore() Future<void>
This function is to jump to before id.
jumpToNext() Future<void>
This function is to jump to next id.
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