NumX<T extends num> extension

on
  • T

Methods

between(num first, num endInclusive) bool
Returns true if between first and endInclusive.
coerceAtLeast(T minimumValue) → T
Ensures that this value is not less than the specified minimumValue.
coerceAtMost(T maximumValue) → T
Ensures that this value is not greater than the specified maximumValue.
coerceIn(T minimumValue, [T? maximumValue]) → T
Ensures that this value lies in the specified range minimumValue..maximumValue.
inRange(Range<num> range) bool
Returns true if in the range.