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 specifiedtoInclusivevalue 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 specifiedtoInclusivevalue 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 specifiedtoInclusivevalue, 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 specifiedtoExclusivevalue. -
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 specifiedtoInclusivevalue, inclusively.