ScrollIntensityConfig class
Configuration for scroll intensity/feel
Defines the physics parameters that control how scrolling feels, including friction, deceleration, and animation curves.
Constructors
- ScrollIntensityConfig({required double friction, required double decelerationRate, required double scrollMultiplier, required Curve activeCurve})
-
const
- ScrollIntensityConfig.fromIntensity(KScrollIntensity intensity)
-
Creates config from intensity enum
factory
Properties
- activeCurve → Curve
-
Curve used for interpolation during active scrolling
final
- decelerationRate → double
-
Rate at which momentum decreases (0-1, higher = longer momentum)
final
- friction → double
-
Friction coefficient for momentum phase (lower = longer glide)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollMultiplier → double
-
Multiplier for scroll events (higher = faster scroll per tick)
final
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
- fast → const ScrollIntensityConfig
- Fast intensity - snappier with shorter momentum
- medium → const ScrollIntensityConfig
- Medium intensity - Windows-like feel with balanced momentum
- slow → const ScrollIntensityConfig
- Slow intensity - macOS-like feel with smooth, long momentum