Skip to content

Instantly share code, notes, and snippets.

@kumar-aakash86
Last active July 28, 2020 14:42
Show Gist options
  • Select an option

  • Save kumar-aakash86/3ff2a1067a3b1b647b534893ab918a8c to your computer and use it in GitHub Desktop.

Select an option

Save kumar-aakash86/3ff2a1067a3b1b647b534893ab918a8c to your computer and use it in GitHub Desktop.
Dart Generate Function
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