ScrollableDetails class
Describes the aspects of a Scrollable widget to inform inherited widgets like ScrollBehavior for decorating or enumerate the properties of combined Scrollables, such as TwoDimensionalScrollable.
Decorations like GlowingOverscrollIndicators and Scrollbars require information about the Scrollable in order to be initialized.
- Annotations
Constructors
- ScrollableDetails({required AxisDirection direction, ScrollController? controller, ScrollPhysics? physics, @Deprecated('Migrate to decorationClipBehavior. ' 'This property was deprecated so that its application is clearer. This clip ' 'applies to decorators, and does not directly clip a scroll view. ' 'This feature was deprecated after v3.9.0-1.0.pre.') Clip? clipBehavior, Clip? decorationClipBehavior})
-
Creates a set of details describing the Scrollable.
const
- ScrollableDetails.horizontal({bool reverse = false, ScrollController? controller, ScrollPhysics? physics, Clip? decorationClipBehavior})
-
A constructor specific to a Scrollable with an Axis.horizontal.
const
- ScrollableDetails.vertical({bool reverse = false, ScrollController? controller, ScrollPhysics? physics, Clip? decorationClipBehavior})
-
A constructor specific to a Scrollable with an Axis.vertical.
const
Properties
- clipBehavior → Clip?
-
Deprecated getter for decorationClipBehavior.
no setter
- controller → ScrollController?
-
An object that can be used to control the position to which this widget is
scrolled.
final
- decorationClipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
final
- direction → AxisDirection
-
The direction in which this widget scrolls.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- physics → ScrollPhysics?
-
How the widgets should respond to user input.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{AxisDirection? direction, ScrollController? controller, ScrollPhysics? physics, Clip? decorationClipBehavior}) → ScrollableDetails - Copy the current ScrollableDetails with the given values replacing the current values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override