toUint256 method

Uint256 toUint256()

Sign-extending widen, then reinterpret.

Implementation

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