runTransaction<E> method

Future<E> runTransaction<E>(
  1. TransactionHandler<E> transactionHandler, {
  2. Duration timeout = const Duration(seconds: 30),
  3. int maxAttempts = 5,
})

Helper method to run a Transaction from _firebaseFirestore..

Implementation

Future<E> runTransaction<E>(
  TransactionHandler<E> transactionHandler, {
  Duration timeout = const Duration(seconds: 30),
  int maxAttempts = 5,
}) =>
    _firebaseFirestore.runTransaction(
      transactionHandler,
      timeout: timeout,
      maxAttempts: maxAttempts,
    );