maximumNice property

  1. @override
N get maximumNice
override

Same as maximum but as a nice number.

Implementation

@override
N get maximumNice {
  if (_isNiceNum(maximum)) return maximum;

  var tolerance = niceTolerance();
  if (tolerance == 0) return maximum;

  return maximum + tolerance as N;
}