DartBasic4 topics

Lists, sets, maps and iterables

Manage real collections, construct data conditionally and transform values deliberately.

Use an inventory import and an invoice report to distinguish ordered data, unique membership and keyed lookup. Keep copying, mutation and lazy evaluation visible as the examples grow.

Your lessons

One clear step at a time
  1. 01Dart lists and sorting: manage an inventory shortlistAdd, filter, sort and copy a list without accidentally changing the original order.2 min
  2. 02Dart sets and maps: deduplicate tags and count stockUse set membership and typed map updates for a practical stock summary.2 min
  3. 03Dart collection if, for, spread and null-aware elementsBuild request fields and menu items with conditional, spread and null-aware elements.2 min
  4. 04Dart Iterable, map, where and fold: summarize invoicesTransform, filter and aggregate typed data while understanding lazy evaluation.2 min
View the full Dart course

Find your next idea

Search lessons, code examples and projects.

Type a few words to start exploring.