Skip to content

Instantly share code, notes, and snippets.

@ruan65
Created February 27, 2019 15:10
Show Gist options
  • Save ruan65/fd6f60da2a1849167c0a76e7192733d5 to your computer and use it in GitHub Desktop.
Save ruan65/fd6f60da2a1849167c0a76e7192733d5 to your computer and use it in GitHub Desktop.
Dart helpers
Iterable<int> range({int from = 0, int to}) sync* {
for (int i = from; i < to; ++i) {
yield i;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment