Instantly share code, notes, and snippets.

@jebright /foreach
Last active Sep 23, 2018

Embed
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