limitMax method

double limitMax(
  1. double maxValue
)

Determines the maximum limitation of two values.

If this value is smaller than {maxValue}, this value is returned, owherwise, {maxvalue} is returned.

Implementation

double limitMax(double maxValue) => (this ?? maxValue).limitMax(maxValue);