coerceAtLeast method

Comparable<T> coerceAtLeast(
  1. T minimumValue
)

Ensures that this value is not less than the specified minimumValue.

Implementation

Comparable<T> coerceAtLeast(T minimumValue) {
  return this >= minimumValue ? this : minimumValue;
}