6. Dart Collections

Collection in Dart

Dart does not support array unlike other programming. Dart collections can be used to replicate data structure like an array. The dart:core library and other classes enable Collection support in Dart scripts. Dart collections can be classified as-

Dart Collection Description
Sets Sets are the fundamental data structures which represents a collection of objects in which each object can occur only once.
Maps The Map object is a simple key/value pair. Keys and values in map may be of any datatype.A map is a dynamic collection.
Lists List are the ordered collection of objects. Theu play cruical role in dart applications.