W3cubDocs

/Dart 2

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.dartlang.org/stable/2.0.0/dart-core/BigInt/toInt.html