forked from seaneagan/interval
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
193 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import 'package:xrange/src/range/num_range.dart'; | ||
|
||
Iterable<int> integers(int lower, int upper, { | ||
Iterable<int> integers( | ||
int lower, | ||
int upper, { | ||
int step = 1, | ||
bool lowerClosed = true, | ||
bool upperClosed = false, | ||
}) => NumRange( | ||
lower: lower, | ||
upper: upper, | ||
lowerClosed: lowerClosed, | ||
upperClosed: upperClosed, | ||
) | ||
.values(step: step) | ||
.map((el) => el.toInt()); | ||
}) => | ||
NumRange( | ||
lower: lower, | ||
upper: upper, | ||
lowerClosed: lowerClosed, | ||
upperClosed: upperClosed, | ||
).values(step: step).map((el) => el.toInt()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
name: xrange | ||
version: 1.0.0 | ||
version: 2.0.0-nullsafety.0 | ||
description: Provides classes and methods allowing to work with ranges | ||
homepage: https://github.com/gyrdym/xrange | ||
|
||
environment: | ||
sdk: '>=2.7.0 <3.0.0' | ||
sdk: '>=2.12.0-0 <3.0.0' | ||
|
||
dev_dependencies: | ||
build_runner: ^1.1.2 | ||
build_test: ^0.10.2 | ||
mockito: ^4.1.1 | ||
pedantic: ^1.9.2 | ||
test: ^1.2.0 | ||
mockito: ^5.0.0-nullsafety.5 | ||
pedantic: ^1.10.0-nullsafety.3 | ||
test: ^1.16.0-nullsafety.17 | ||
test_coverage: ^0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.