我遇到了这个错误: The argument type 'Object' can't be assigned to the parameter type 'Map<String, dynamic>?在这行代码中: listMakans = query.docs.map((m) => Makan.fromSnapshot(m.data()!)).toList(); 下面是(Makan.fromSnapshot)的代码: Makan.fromSnapshot(
b: 2}第一个错误:
The argument type 'Set<Future<DocumentReference<Map<String, dynamic>>>> Function(String)' can't be assigned to the parameter type 'void Function(String,dyna
我试图从一个页面导航到另一个页面,但是当我试图调用一个特定的值(内容)时,它会显示这个错误,即使在这种情况下,参数类型和参数类型都是相同的。class ProductList extends StatelessWidget { final Functionextends StatefulWidget {
final Function addProduct;
<String, dynamic>> values, String title) async { ...我收到错误
The argument type 'Iterable<Map<String, dynamic>>' can't be assigned to the parameter type'List<