toInt method

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();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/BigInt/toInt.html