runInTransaction<R> static method

R runInTransaction<R>(
  1. Store store,
  2. TxMode mode,
  3. R fn(
    1. Transaction
    )
)

Internal helper to reuse a transaction object (and especially cursors).

Implementation

@pragma('vm:prefer-inline')
static R runInTransaction<R>(
        Store store, TxMode mode, R Function(Transaction) fn) =>
    store._runInTransaction(mode, fn);