小编Shi*_*Guo的帖子

使用 Dart 和 Flutter 在类中声明 Map 列表

我尝试使用不同的语法来 decaring aList<Map<String, Object>> _work;但它仍然失败并给出错误

type 'MappedListIterable' is not a subtype of type 'List<Map<String, Object>> .....
MappedListIterable is from dart:_internal
List is from dart:core
Mapis is from dart:core
String is from dart:core
Object is from dart:core
.....
Run Code Online (Sandbox Code Playgroud)

我想声明一个变量,它是一个 Map 列表,其中键是 String,值是 Object。我该怎么做呢?

非常感谢您的帮助

dart flutter

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

dart ×1

flutter ×1