doubleEqual function

bool doubleEqual (
  1. double value,
  2. double other
)

Returns a value indicating whether two instances of Double represent the same value.

value equal to other will return true, otherwise, false.

If value or other is not finite (NaN or infinity), throws an UnsupportedError.

Implementation

bool doubleEqual(double value, double other) {
  return doubleCompare(value, other) == 0;
}