InternalLinkedHashMap
全部标签 我正在尝试在sqflite数据库中保存一些带有flutter的数据,但我仍然收到一条错误消息:[ERROR:flutter/shell/common/shell.cc(181)]DartError:Unhandledexception:type'_InternalLinkedHashMap'isnotasubtypeoftype'Map'错误说错误在这个函数内部:FutureinsertRecipe(RecipesDBrecipe)async{varcount=Sqflite.firstIntValue(await_db.rawQuery("SELECTCOUNT(*)FROMreci
我创建了一个方法,当我构建它时,出现了这个错误:type'_InternalLinkedHashMap'isnotasubtypeoftype'List'intypecast然后我删除了方法,错误仍然存在。这是我的代码:classProdukt{Stringname;intanzahl;Produkt({this.name,this.anzahl,});factoryProdukt.fromJson(MapparsedJson){returnProdukt(name:parsedJson['Name'],anzahl:parsedJson['Anzahl']);}MaptoProd
我是Flutter的新手,我尝试从“10.0.2.2:8000/api/membres”上的api获取数据,但出现错误,如typeListdynamicisnotasubtypeoftype'List.我正在关注flutter的示例:https://flutter.dev/docs/cookbook/networking/fetch-data#complete-example请帮助我遵循有用的教程并告诉我如何修复此代码。我的主页.dartimport'package:flutter/material.dart';import'dart:async';import'package:htt
我正在调用一个postAPI,我必须在其中发送FormData但在收到响应后,当我尝试解析该响应时,我遇到了异常。staticFutureversionApiRequest(StringstoreId,StringdeviceId)async{StringversionApi='https://xxxxxxx/${storeId}/api_v5/version';print('$versionApi,$storeId');FormDataformData=newFormData.from({"device_id":deviceId,"device_token":"","platform