IntRangeExt extension Null safety
Add range extensions to int.
- on
Methods
-
downTo(
int toInclusive, {int step = 1}) → IntRange -
Returns a progression from this value down to the specified
toInclusivevalue with the step-step. [...] -
downUntil(
int toExclusive, {int step = 1}) → IntRange -
Returns a progression from this value down to but excluding the specified
toInclusivevalue with the step-step. [...] -
rangeTo(
int toInclusive, {int step = 1}) → IntRange -
Creates a range from this value to the specified
toInclusivevalue, inclusively. [...] -
until(
int toExclusive, {int step = 1}) → IntRange -
Creates a range from this value up to but excluding the specified
toExclusivevalue. [...] -
upTo(
int toInclusive, {int step = 1}) → IntRange -
Alias for
rangeTo(), creates a range from this value to the specifiedtoInclusivevalue, inclusively. [...]