Created
August 19, 2018 04:04
-
-
Save namchuai/634c3c7b1bcac7ec7e0f1f9ae39ccefd to your computer and use it in GitHub Desktop.
Generate a dummy list
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
| final todos = List<Todo>.generate( | |
| 20, | |
| (i) => Todo( | |
| 'Todo $i', | |
| 'A description of what needs to be done for Todo $i', | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment