kMaterialSpringBuilder function
SpringDescription
kMaterialSpringBuilder({
- required IndicatorMode mode,
- required double offset,
- required double actualTriggerOffset,
- required double velocity,
Spring description used by material.
Implementation
physics.SpringDescription kMaterialSpringBuilder({
required IndicatorMode mode,
required double offset,
required double actualTriggerOffset,
required double velocity,
}) =>
physics.SpringDescription.withDampingRatio(
mass: 1,
stiffness: 500,
ratio: 1.1,
);