isInteger property

  1. @useResult
bool get isInteger

Implementation

@useResult
bool get isInteger => this is int || (this is double && this == roundToDouble());