firebase - 在 Dart 中迭代 Map of Maps

标签 firebase flutter dart google-cloud-firestore

我目前在 firestore 中有一张 map 的 map ,我想知道如何才能通过 map 的内部值?

这就是我的结构: map: {1: {1.1: asdasd, 1.2: asdasd}, 2: {2.1: qweqwe, 2.2: qweqwe}}}

我尝试过使用Map<String, Map<String, Map<String, String>>> ,但这给了我 type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Iterable<dynamic>'

有什么办法可以解决这个问题吗?

提前非常感谢您。

最佳答案

我通过使用 Map<dynamic, dynamic> 就弄清楚了

关于firebase - 在 Dart 中迭代 Map of Maps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57507685/

相关文章:

ios - Swift - 如何在 Firebase 上创建降序排序查询?

button - 带有透明png的Flutter按钮

dart - 如何在启用了NNBD实验的IntelliJ中运行Dart测试?

android - 未调用 onNewToken()

swift - Firebase - 从低到高排序子值

flutter - 方法 '[]' 在 null 上调用,但在 App 中有效

firebase - 获取 firestore 数据库时 "itemCount: snapshot.data.documents.length"不再工作。有谁知道如何解决这个问题?

flutter - 为什么我不能定义名称 '$url'?

android - Flutter如何在圆圈中显示标记? flutter_map

android - 如何删除 "expired"或 Android Studio 上当前日期之后的 firebase 项目?