Skip to content

Instantly share code, notes, and snippets.

@namchuai
Created August 19, 2018 04:04
Show Gist options
  • Select an option

  • Save namchuai/634c3c7b1bcac7ec7e0f1f9ae39ccefd to your computer and use it in GitHub Desktop.

Select an option

Save namchuai/634c3c7b1bcac7ec7e0f1f9ae39ccefd to your computer and use it in GitHub Desktop.
Generate a dummy list
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