Tolerance constructor Null safety

const Tolerance(
  1. {double distance = _epsilonDefault,
  2. double time = _epsilonDefault,
  3. double velocity = _epsilonDefault}
)

Creates a Tolerance object. By default, the distance, time, and velocity tolerances are all ±0.001; the constructor arguments override this.

The arguments should all be positive values.

Implementation

const Tolerance({
  this.distance = _epsilonDefault,
  this.time = _epsilonDefault,
  this.velocity = _epsilonDefault,
});