roundToIfCloseTo method
If the double is within epsilon of other, returns other, otherwise returns this double.
Implementation
double roundToIfCloseTo(double other, {double epsilon = _defaultEpsilon}) =>
isCloseTo(other, epsilon: epsilon) ? other : this;