CollectionReferenceFake constructor

CollectionReferenceFake(
  1. String _path, {
  2. Future<DocumentReference<Map<String, dynamic>>> add(
    1. Map<String, dynamic>
    )?,
  3. DocumentReference<Map<String, dynamic>> doc(
    1. String? id
    )?,
  4. Where? where,
  5. FirebaseFirestore? firestore,
})

Implementation

CollectionReferenceFake(
  this._path, {
  Future<DocumentReference<Map<String, dynamic>>> Function(
    Map<String, dynamic>,
  )?
      add,
  DocumentReference<Map<String, dynamic>> Function(String? id)? doc,
  Where where,
  FirebaseFirestore? firestore,
})  : _where = where,
      _doc = doc,
      _add = add,
      _firestore = firestore ?? FirebaseFirestoreFake();