toInt abstract method
If the number does not fit, clamps to the max (or min)integer.
Warning: the clamping behaves differently between the web andnative platforms due to the differences in integer precision.
Example:
var bigNumber = BigInt.parse('100000000000000000000000');print(bigNumber.isValidInt); // falseprint(bigNumber.toInt()); // 9223372036854775807Implementation
int toInt();