hasDecimals property
bool
get
hasDecimals
Returns true if this double has a non-zero fractional part.
Example:
15.5.hasDecimals; // true
15.0.hasDecimals; // false
15.00.hasDecimals; // false
Implementation
bool get hasDecimals => this % 1 != 0;