inRange static method
Asserts that the value is within the specified range
Implementation
static void inRange(num value, num min, num max, [String? message]) {
if (value < min || value > max) {
throw AssertionError(
message ?? 'Value must be between $min and $max',
);
}
}