ScrollContext class abstract
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.
no setter
- devicePixelRatio → double
-
The FlutterView.devicePixelRatio of the view that the Scrollable this
ScrollContext is associated with is drawn into.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- notificationContext → BuildContext?
-
The BuildContext that should be used when dispatching
ScrollNotifications.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storageContext → BuildContext
-
The BuildContext that should be used when searching for a PageStorage.
no setter
- vsync → TickerProvider
-
A TickerProvider to use when animating the scroll position.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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