当我尝试导入JSON文件时,在Flutter the method map was called on null中收到错误信息。问题是,该属性可能实际存在,也可能不存在。这里有一个简化的JSON文件来解释这个问题。 [ {"insert":"Some text.","attributes":{"i":true}}
] 下面是导入失败的代码。
我的pubspec.yaml sdk: '>=2.15.0-116.0.dev <3.0.0'flutter build appbundle/apkFor more information see https://dart.dev/null-safety/unsound-null-safety我的整个项目是100%音效<