Lists, Sets and Maps in Dart — a practical guide to Dart lists sets maps with clear examples you can reuse in real projects.
Flutter Tutorial Series (16/107). Prefer one article? Read the complete Flutter tutorial.
Short description
Lists are ordered; Sets are unique; Maps are key/value — all common in Flutter state and JSON.
Collections
final nums = <int>[1, 2, 3];
final tags = <String>{'dart', 'flutter'};
final user = <String, dynamic>{'id': 1, 'name': 'Asha'};