错误:没有名为“ queryBuilder”的命名参数

时间:2020-05-05 17:09:40

标签: android firebase flutter dart google-cloud-firestore

错误:没有名为'queryBuilder'的命名参数。 queryBuilder:job!= null? (query)=> query.where('jobId',isEqualTo:job.id):null,

  Stream<List<Entry>> entriesStream({Job job}) => _service.collectionStream<Entry>(
    path: APIpath.entries(uid),
      queryBuilder: job != null ? (query) => query.where('jobId', isEqualTo: job.id) : null,
    builder: (data, documentID) => Entry.fromMap(data, documentID),
    sort: (lhs, rhs) => rhs.start.compareTo(lhs.start),
  );

0 个答案:

没有答案