IntRange class
A basic representation of an inclusive range of integers. If min or max are null, they represent negative infinity or positive infinity respectively.
Constructors
- IntRange({int? min, int? max})
-
Defines a range of integers. Min and max are inclusive, and default to
negative and positive infinity (subject to integer size limitations),
respectively, if not declared.
const
- IntRange.infinite()
-
Helper method to declare an infinite range of integers.
This is equivalent to IntRange() with no arguments, but is included
for clarity.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withinRange(
int value) → bool - Tests whether the given value is within this range.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited