首页 > 解决方案 > 在 Flutter 中使用集合包的问题

问题描述

如果我运行此代码

print(CombinedMapView([{'a': 1}, {'a': 2}]));

在 Dart 中,它按预期打印

{a: 1}

但在颤振它打印

{a: 1, a: 1}

有错误还是我错过了什么?

标签: flutterdartcollections

解决方案


推荐阅读