coerceAtLeast method
T
coerceAtLeast(
- T minimumValue
Ensures that this value is not less than the specified minimumValue
.
@return this value if it's greater than or equal to the minimumValue
or the minimumValue
otherwise.
Implementation
T coerceAtLeast(T minimumValue) => this < minimumValue ? minimumValue : this;