closeTo function

Matcher closeTo(
  1. num value,
  2. num delta
)

Returns a matcher which matches if the match argument is within delta of some value.

In other words, this matches if the match argument is greater than than or equal value-delta and less than or equal to value+delta.

Implementation

Matcher closeTo(num value, num delta) => _IsCloseTo(value, delta);