因此,作为Flutter的新手,我想找到一种方法将数据保存在数据库中,以便离线支持。这就是问题所在 Unhandled Exception: type 'String' is not a subtype of type 'List<dynamic>' in type cast 我的模型数据如下List<Employee> employeeFromJson(String str) =>
List<Employee>.f
我得到一个错误:类型'List‘不是类型'FutureOr’的子类型。我已经检查了数据类型,但似乎找不到错误的原因。//getting the data from api call
var res = awaitreturn body.map((p) => Donation.fromJson(p)).toList();
//Building the fu
<dynamic>' is not a subtype of type 'List<String>'
FutureBuilderauth_screens/signUp_screens/worker/signUp_screen14.dart:102:46)
#2 _FutureBuilderState.build (package:flutter/src&
我一直试图将一个List<dynamic>传递给一个接收List<dynamic>作为参数的类,但我得到了以下错误: The argument type 'List<dynamic>?'can't be assigned to the parameter type 'List<dynamic>'.<dynamic>> s