GlassSpring class abstract final

Static spring-description factories that mirror motor's named presets.

Every preset uses SpringDescription.withDurationAndBounce, which is the same factory motor's CupertinoMotion uses internally.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

bouncy({Duration duration = const Duration(milliseconds: 500), double extraBounce = 0.0}) SpringDescription
Bouncy spring — motor's Motion.bouncySpring. Default duration 500 ms, bounce 0.3.
interactive({Duration duration = const Duration(milliseconds: 150), double extraBounce = 0.0}) SpringDescription
Interactive spring — motor's Motion.interactiveSpring. Short 150 ms response, light bounce 0.14.
smooth({Duration duration = const Duration(milliseconds: 500), double extraBounce = 0.0}) SpringDescription
Smooth spring — motor's Motion.smoothSpring. Default duration 500 ms, bounce 0.0 (critically-damped).
snappy({Duration duration = const Duration(milliseconds: 500), double extraBounce = 0.0}) SpringDescription
Snappy spring — motor's Motion.snappySpring. Default duration 500 ms, bounce 0.15.