kMaterialSpringBuilder function

SpringDescription kMaterialSpringBuilder({
  1. required IndicatorMode mode,
  2. required double offset,
  3. required double actualTriggerOffset,
  4. 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,
    );