IntRangeExt extension

Add range extensions to int.

on

Methods

downTo(int toInclusive, {int step = 1}) IntRange
Returns a progression from this value down to the specified toInclusive value with the step -step.
downUntil(int toExclusive, {int step = 1}) IntRange
Returns a progression from this value down to but excluding the specified toInclusive value with the step -step.
rangeTo(int toInclusive, {int step = 1}) IntRange
Creates a range from this value to the specified toInclusive value, inclusively.
until(int toExclusive, {int step = 1}) IntRange
Creates a range from this value up to but excluding the specified toExclusive value.
upTo(int toInclusive, {int step = 1}) IntRange
Alias for rangeTo(), creates a range from this value to the specified toInclusive value, inclusively.