intOp method Null safety

Value intOp()

Implementation

Value intOp() {
  if (asMatrix != null) {
    throw CalculatorError(1);
  }
  final e = exponent;
  if (e < 0) {
    return zero;
  } else if (e > 9) {
    return this;
  }
  final BigInt u = _upper52;
  final mask = 'fffffffffff'.substring(9 - e).padRight(11, '0');
  // mask includes sign
  final BigInt m = BigInt.parse(mask, radix: 16);
  return Value._fromMantissaAndRawExponent(u & m, e);
}