WriteBatchWithReference<T> constructor

const WriteBatchWithReference<T>({
  1. required WriteBatch writeBatch,
  2. required DocumentReference<T> documentReference,
})

Creates a new write batch with reference container

Parameters: writeBatch the Firestore batch operation documentReference reference to the last document operated on

Implementation

const WriteBatchWithReference({
  required this.writeBatch,
  required this.documentReference,
});