isIntegral property

bool get isIntegral

Implementation

bool get isIntegral {
  if (this == null) return false;
  return this is int || this?.roundToDouble() == this;
}