最佳答案
将出现错误的代码行更改为:
selectedData = [OutletListModel.fromJson(value.toJson())];
因为 selectedData
需要一个 OutletListModel
数组;
关于 flutter 错误: A value of type 'OutletListModel' can't be assigned to a variable of type 'List<OutletListModel>?' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75765687/