hashCode property

  1. @override
int hashCode
override

An integer value returns the same hash as the int with the same value. Otherwise returns the same hash as the Precise number representing the value.

Implementation

@override
int get hashCode {
  if (_value.isNaN || _value.isInfinite) return _value.hashCode;
  if (isInteger) return toInt().hashCode;
  return Precise.num(_value).hashCode;
}