approximately method Null safety

bool approximately(
  1. Angle rhs,
  2. double range
)

Checks if rhs is approximately this angle, +/- range. range must be non-negative.

Implementation

bool approximately(final Angle rhs, final double range) {
  assert(range >= 0);
  return rhs._storage >= _storage - range && rhs._storage <= _storage + range;
}