collectionTransaction static method

LocalCollectionTransactionBuilder collectionTransaction({
  1. required String collectionPath,
  2. String? linkedCollectionPath,
})

Outputs the builder to be written by the transaction.

Basically, it writes and deletes data for collectionPath.

You can add the corresponding element by specifying linkedCollectionPath.

Implementation

static LocalCollectionTransactionBuilder collectionTransaction({
  required String collectionPath,
  String? linkedCollectionPath,
}) {
  return LocalCollectionTransactionBuilder._(
    collectionPath: collectionPath,
    linkedCollectionPath: linkedCollectionPath,
  );
}