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 specified toInclusive 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 specified toInclusive 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 specified toInclusive 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 specified toExclusive 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 specified toInclusive value, inclusively.