我是第一次接触flutter和遇到类型错误。我正在尝试使用json自动序列化。在做了一些调整之后,它看起来是这样的下面是我尝试从api中获取数据的方法 final res = await http.get<String, dynamic> json) => _$BaseResponseFromJson(json);
我试图从防火墙中获取当前用户的数据,并将它们返回到用户模型中,但我得到了这个异常。有人知道怎么解决这个问题吗? await _userCollection.doc(currentUser.uid).get();
Map<String, dynamic> data = documentSnapshot.data as Map<<em
我正在跟踪flutter的api集成文档,但是我得到了这个错误类型'List<dynamic>' is not a subtype of type 'Map<String, dynamic>'
根据它的文档给出的示例响应anthony-levandowski-gets-18-months-in-prison-for-stealing-google-sel
使用Flutter http包调用http.get时,会抛出以下异常: Unhandled Exception: Unhandled error type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Map<String, String>' occurred in bloc Instance of 'AccountsBloc
1) type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<Map<String, dynamic>>'
我的代码.List<Map<String, dynamic>> arrayOfProductList = List<