IntRangeExt extension
Add range extensions to int.
- on
Methods
-
downTo(
int toInclusive, {int step = 1}) → IntRange -
Available on int, provided by the IntRangeExt extension
Returns a progression from this value down to the specifiedtoInclusive
value with the step-step
. -
downUntil(
int toExclusive, {int step = 1}) → IntRange -
Available on int, provided by the IntRangeExt extension
Returns a progression from this value down to but excluding the specifiedtoInclusive
value with the step-step
. -
rangeTo(
int toInclusive, {int step = 1}) → IntRange -
Available on int, provided by the IntRangeExt extension
Creates a range from this value to the specifiedtoInclusive
value, inclusively. -
until(
int toExclusive, {int step = 1}) → IntRange -
Available on int, provided by the IntRangeExt extension
Creates a range from this value up to but excluding the specifiedtoExclusive
value. -
upTo(
int toInclusive, {int step = 1}) → IntRange -
Available on int, provided by the IntRangeExt extension
Alias for rangeTo(), creates a range from this value to the specifiedtoInclusive
value, inclusively.