toUint128 method
Sign-extending widen, then reinterpret.
Implementation
Uint128 toUint128() {
final ext = isNegative ? Uint64.max : Uint64.zero;
return Uint128.unsafe(ext, _bits);
}
Sign-extending widen, then reinterpret.
Uint128 toUint128() {
final ext = isNegative ? Uint64.max : Uint64.zero;
return Uint128.unsafe(ext, _bits);
}