isInt property

bool isInt

Whether this is an integer, according to fuzzyEquals.

The int value can be accessed using asInt or assertInt. Note that this may return false for very large doubles even though they may be mathematically integers, because not all platforms have a valid representation for integers that large.

Implementation

bool get isInt => fuzzyIsInt(value);