MagneticSim constructor

const MagneticSim({
  1. required double position0,
  2. required double target,
  3. double strength = 50.0,
  4. double restThreshold = 0.01,
})

Implementation

const MagneticSim({
  required this.position0,
  required this.target,
  this.strength = 50.0,
  this.restThreshold = 0.01,
});