nextUp property

double nextUp

Returns the nearest double in direction of positive infinity.

Implementation

double get nextUp {
  if (isNaN || this == double.infinity) return this;
  if (this == 0.0) return double.minPositive;
  return this < 0.0 ? _decrement(this) : _increment(this);
}