runTransaction method

Future<Map<String, dynamic>> runTransaction(
  1. TransactionHandler transactionHandler, {
  2. Duration timeout = const Duration(seconds: 10),
})

Doubled the attempt duration to 10 seconds.

Implementation

Future<Map<String, dynamic>> runTransaction(
        TransactionHandler transactionHandler,
        {Duration timeout = const Duration(seconds: 10)}) =>
    _store.runTransaction(
        transactionHandler as Future<Map<String, dynamic>> Function(
            Transaction),
        timeout: timeout);