isJsCompatible property
bool
isJsCompatible
Whether all values of this kind can be represented as a double.
In practice, this means bits must not be greater than 52/53 bits (depending on the value of isUnsigned).
Implementation
bool get isJsCompatible {
final maxBits =
isUnsigned ? bitsWhenJsCompatibleUnsigned : bitsWhenJsCompatible;
return bits <= maxBits;
}