Collections are data structures used to store and process a group of elements.
Dart does not support Arrays.
Dart collections provide multiple classes with generics.
Following are classes supported in dart collections.
|Collections | Description | Generics Classes| |:——–| ————— | |List| List is an order collection for storage that allows duplicates. Fixed and dynamic lists types|
List<T>,| |Set| Set is similar to List except duplicates elements are allowed|
LinkedHashSet<K, V>| |Maps| Stores key and value pairs similar to Hashtable and Dictionary in another programming language |
LinkedHashMap<K, V>| |Queue| Separate collection type to update and add from both ends|
LinkedList<T extends LinkedListEntry<T>>|