Useful Links
Computer Science
Programming
By Language
Dart Programming Language
1. Introduction to Dart
2. Dart Language Fundamentals
3. Functions
4. Object-Oriented Programming (OOP) in Dart
5. Collections
6. Asynchronous Programming
7. Error Handling and Exceptions
8. Dart Tooling and Ecosystem
9. Advanced Topics
Collections
Lists
List Characteristics
Ordered Collections
Index-Based Access
List Types
Fixed-Length Lists
Growable Lists
List Literals
Empty Lists
Initialized Lists
Accessing Elements by Index
Common List Properties and Methods
`length`
`isEmpty`
`isNotEmpty`
`first`
`last`
`add`
`addAll`
`insert`
`insertAll`
`remove`
`removeAt`
`removeLast`
`clear`
`contains`
`indexOf`
`lastIndexOf`
Iterating Over Lists
For-in Loops
forEach Method
Iterator Pattern
List Manipulation
Sorting
Reversing
Shuffling
The Spread Operator (`...`)
Null-aware Spread Operator (`...?`)
Collection `if` and `for`
Conditional Elements
Generated Elements
Sets
Set Characteristics
Unordered Collection
Unique Elements
Set Literals
Common Set Operations
`add`
`addAll`
`contains`
`remove`
`removeAll`
`clear`
`intersection`
`union`
`difference`
Iterating Over Sets
Set Types
HashSet
LinkedHashSet
SplayTreeSet
Maps
Map Characteristics
Key-Value Pairs
Unique Keys
Map Literals
Accessing Values by Key
Common Map Properties and Methods
`keys`
`values`
`entries`
`length`
`isEmpty`
`isNotEmpty`
`containsKey`
`containsValue`
`putIfAbsent`
`remove`
`clear`
`update`
`updateAll`
Iterating Over Maps
Iterating Keys
Iterating Values
Iterating Entries
Map Types
HashMap
LinkedHashMap
SplayTreeMap
Iterables
Iterable Interface
Common Iterable Methods
`map`
`where`
`expand`
`fold`
`reduce`
`any`
`every`
`take`
`skip`
`toList`
`toSet`
Lazy Evaluation
Method Chaining
Generics
Purpose of Generics
Type-Safe Collections
Generic Lists (`List<T>`)
Generic Sets (`Set<T>`)
Generic Maps (`Map<K, V>`)
Using Generics with Classes
Generic Methods
Bounded Type Parameters (`<T extends SomeType>`)
Type Constraints
Generic Type Inference
Previous
4. Object-Oriented Programming (OOP) in Dart
Go to top
Next
6. Asynchronous Programming