Links
- Iteration
- dart:Iterator
- dart:Iterable
- Iterables (what's new in M3)
List<E>
abstract class- Constructors: List | List.filled | List.from | List.generate
- Properties
- Add/remove/mutate
- clear
- add | addAll | setAll | setRange | fillRange | replaceRange
- insert | insertAll
- remove | removeAt | removeLast | removeRange
- removeWhere | retainWhere
- sort | shuffle
- Bool tests
- Find / Lookup
- Itertools
Snippets
// Filtering List filtered = [1, 2, 3, 4, 5] .where((n) => (n % 2) == 0) .toList(growable: false); print("Filtered: $filtered");