isInfinity method

bool isInfinity()

Returns true if h is a positive or a negative infinity.

Implementation

bool isInfinity() {
  final e = (_h! >> 10) & 0x001f;
  final m = _h! & 0x3ff;
  return e == 31 && m == 0;
}