我正在尝试使用一个列表(自定义类型),但遇到错误。 当我尝试使用getData()函数时。如下所示。A value of type 'Future<List<UserVideo>>' can't be assigned to a variable of type 'List<UserVideo>'.以下是函数的代码。: mockVideo,
this.image: mockIm
required this.name,} 我正在使用一个名为multi_select_flutter的包,并且在从值赋给_selectedMuscles时遇到了一个问题: MultiSelectChipField: A value of type 'List<Object?>' can't be assigned to a variable of type 'List<Muscle>'
我正在学习Flutter和GetX。notificationsLastArchiveDate: DateTime.parse(json['notificationsLastArchiveDate'])我正在尝试创建从http接收数据的Getxprint("Can't get stat: ${value.statusCode}");我收到一个错误:
A value of type 'Rx<Future</e
我试着写一个简单的代码,将Future转换成“平均”数据,但它不起作用,我不明白为什么会这样。这是我的代码 Data getData () { data = fetch().then((value) {data = value;}); //here's I'm getting error int number = a
我列出了temp并调用了函数list,但是发生了这个错误 此错误仅在更新颤动后发生 A value of type 'List<dynamic>' can't be assigned to a variableof type 'List<int>'.List<int> arr = []; [3,4],
[3,5]