toInt method Null safety

int toInt ()

Returns this BigInt as an int.

If the number does not fit, clamps to the max (or min) integer.

Warning: the clamping behaves differently on dart2js, dev compiler, and the VM, due to the differences in integer precision.

Implementation

int toInt();