Last active
July 28, 2020 14:42
-
-
Save kumar-aakash86/3ff2a1067a3b1b647b534893ab918a8c to your computer and use it in GitHub Desktop.
Dart Generate Function
This file contains hidden or 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
| void main() { | |
| List<int> numberList = List<int>.generate(10, (i) => i+1); | |
| numberList.forEach(print); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment