Skip to content

Instantly share code, notes, and snippets.

@jebright jebright/foreach
Last active Sep 23, 2018

What would you like to do?
Dart Fundamentals - Lists - foreach
void main() {
List<String> names = ["Joe", "Frankie", "Tom"];
names.forEach((n) =>
print('Hello Mr. ${n}'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.