8. Dart - List Functions
Defining a List of strings:
List<String> Alist = [
"a",
"b",
"c",
]
A List function:
Alist.map((letter){
print(letter);
})
// this will print every letter in the list.
Can transform into arrow function:
Alist.map((letter) => print(letter))
Comments
Post a Comment