isWhole property

bool get isWhole

Returns true if the number has no fractional part.

Implementation

bool get isWhole => this % 1 == 0;