isWhole property
bool
get
isWhole
Returns true if the number has no fractional part.
Implementation
bool get isWhole => this % 1 == 0;
Returns true if the number has no fractional part.
bool get isWhole => this % 1 == 0;