toBigInt method

BigInt toBigInt()

Signed value as a BigInt — the general-purpose conversion, unlike toInt which throws when the magnitude doesn't fit a double-safe int. Mirrors Int32.toBigInt / Int128.toBigInt.

Implementation

BigInt toBigInt() => _bits.toBigInt().toSigned(64);