toUint128 method

Uint128 toUint128()

Sign-extending widen, then reinterpret.

Implementation

Uint128 toUint128() {
  final ext = isNegative ? Uint64.max : Uint64.zero;
  return Uint128.unsafe(ext, _bits);
}