DocumentReferenceFake constructor

DocumentReferenceFake(
  1. String _id, {
  2. Future<DocumentSnapshot<Map<String, dynamic>>> get()?,
  3. Future<void> update(
    1. Map<Object, Object?>
    )?,
  4. Future<void> set(
    1. Map<String, dynamic>
    )?,
  5. Stream<DocumentSnapshot<Map<String, dynamic>>>? snapshots,
})

Implementation

DocumentReferenceFake(
  this._id, {
  Future<DocumentSnapshot<Map<String, dynamic>>> Function()? get,
  Future<void> Function(Map<Object, Object?>)? update,
  Future<void> Function(Map<String, dynamic>)? set,
  Stream<DocumentSnapshot<Map<String, dynamic>>>? snapshots,
})  : _set = set,
      _snapshots = snapshots,
      _update = update,
      _get = get;