withoutZeroDecimal property

num get withoutZeroDecimal

Implementation

num get withoutZeroDecimal {
  return this % 1 == 0 ? toInt() : this;
}