You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: 'Returns an iterable collection containing all key-value pairs as MapEntry objects in a map.'
4
+
Subjects:
5
+
- 'Computer Science'
6
+
- 'Code Foundations'
7
+
Tags:
8
+
- 'Dart'
9
+
- 'Data Structures'
10
+
- 'Properties'
11
+
CatalogContent:
12
+
- 'learn-dart'
13
+
- 'paths/computer-science'
14
+
---
15
+
16
+
In Dart, the **`.entries`** property returns an iterable collection containing all key-value pairs as `MapEntry` objects in a map. This allows you to iterate over both keys and values together.
17
+
18
+
## Syntax
19
+
20
+
```pseudo
21
+
myMap.entries
22
+
```
23
+
24
+
-`myMap`: The map name that needs to be iterated.
25
+
26
+
## Example
27
+
28
+
The following example demonstrates the usage of the `.entries` property:
0 commit comments