isInteger property

bool get isInteger

Returns true if the number is an integer, false otherwise.

Implementation

bool get isInteger => this == toInt();