SpringConfig class

Spring physics configuration for natural motion.

Constructors

SpringConfig({double damping = 20.0, double stiffness = 180.0, double mass = 1.0})
const

Properties

damping double
final
hashCode int
The hash code for this object.
no setterinherited
mass double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stiffness double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSpringDescription() SpringDescription
Convert to Flutter SpringDescription
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

bouncy → const SpringConfig
Bouncy spring (low damping)
gentle → const SpringConfig
Gentle spring (low stiffness)
ios → const SpringConfig
Default iOS-like spring
smooth → const SpringConfig
Smooth spring (high damping)
snappy → const SpringConfig
Snappy spring (high stiffness)
wobbly → const SpringConfig
Wobbly spring (very low damping)