isSafe property
bool
get
isSafe
Check whether or not this is a safe integer for the current platform.
This getter only really makes sense when compiling to JavaScript because, integers are restricted to values that can be represented exactly by double-precision floating point values. The available integer values include all integers between -2^53 and 2^53, and some integers with larger magnitude.
For example, when compiling to JavaScript an integer is considered safe, if Number.isSafeInteger returns true.
When compiling to native Dart VM code, an integer is always considered safe.
Implementation
bool get isSafe => MyUtilityPlatformAgnosticUtilsExtensionInt(this).isSafe;