snap static method

MagneticSim snap({
  1. double position0 = 0.0,
  2. double target = 1.0,
})

Quick snap — strong field, fast locking.

Implementation

static MagneticSim snap({
  double position0 = 0.0,
  double target = 1.0,
}) =>
    MagneticSim(position0: position0, target: target, strength: 100.0);