Unhandled Exception: InternalLinkedHashMap' is not a subtype of type 'List

前端 未结 9 746
夕颜
夕颜 2020-12-15 16:04

I am trying to get the JSON response from the server and output it to the console.

Future login() async {
    var response = await http.get(
            


        
9条回答
  •  遥遥无期
    2020-12-15 16:43

    If your working with Firebase Cloud,make sure that you're not trying to add multiple data with same DocumentID;

    firestore.collection('user').document(UNIQUEID).setData(educandos[0].toJson()).
    

提交回复
热议问题