asUint128 property

BigInt get asUint128

Implementation

BigInt get asUint128 {
  if (isNegative || this > maxU128) {
    throw ArgumentException("Invalid Unsigned BigInt 128.", details: {
      "expected": maxU128.bitLength,
      "bitLength": bitLength,
      "value": toString()
    });
  }
  return this;
}