js_ rounded_ ints
This rule is available as of Dart 2.0.0.
Numbers. Too large integers (
value < Number.MIN_SAFE_INTEGER or
value > Number.MAX_SAFE_INTEGER) may be rounded to the closest Number value.
1000000000000000000 will be used instead.
int value = 9007199254740995;
BigInt value = BigInt.parse('9007199254740995');
To enable the
avoid_js_rounded_ints under linter > rules in your
linter: rules: - avoid_js_rounded_ints