StacScrollPhysics enum
Defines the types of scroll physics that can be applied to scrollable widgets.
This enum is used to represent the different scrolling behaviors available in Flutter, such as bouncing, clamping, or page-by-page scrolling.
Values
- never → const StacScrollPhysics
-
Disallows scrolling. Corresponds to Flutter's
NeverScrollableScrollPhysics
. - bouncing → const StacScrollPhysics
-
Allows the scroll view to bounce back when it overscrolls. Corresponds to Flutter's
BouncingScrollPhysics
. This is typical on iOS. - clamping → const StacScrollPhysics
-
Stops scrolling abruptly at the boundaries. Corresponds to Flutter's
ClampingScrollPhysics
. This is typical on Android. - fixed → const StacScrollPhysics
-
Scroll physics for scrollables that scroll in fixed item extents. Corresponds to Flutter's
FixedExtentScrollPhysics
. - page → const StacScrollPhysics
-
Scroll physics for scrollables that scroll page by page. Corresponds to Flutter's
PageScrollPhysics
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
StacScrollPhysics> - A constant List of the values in this enum, in order of their declaration.