ScrollContext class Null safety
An interface that Scrollable widgets implement in order to use ScrollPosition.
See also:
- ScrollableState, which is the most common implementation of this interface.
- ScrollPosition, which uses this interface to communicate with the scrollable widget.
- Implementers
Constructors
Properties
- axisDirection → AxisDirection
-
The direction in which the widget scrolls.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- notificationContext → BuildContext?
-
The BuildContext that should be used when dispatching
ScrollNotifications.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- storageContext → BuildContext
-
The BuildContext that should be used when searching for a PageStorage.
read-only
- vsync → TickerProvider
-
A TickerProvider to use when animating the scroll position.
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
saveOffset(
double offset) → void -
Called by the ScrollPosition whenever scrolling ends to persist the
provided scroll
offset
for state restoration purposes. -
setCanDrag(
bool value) → void - Whether the user can drag the widget, for example to initiate a scroll.
-
setIgnorePointer(
bool value) → void - Whether the contents of the widget should ignore PointerEvent inputs.
-
setSemanticsActions(
Set< SemanticsAction> actions) → void - Set the SemanticsActions that should be expose to the semantics tree.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited