writeTxn<T> method

  1. @override
Future<T> writeTxn<T>(
  1. Future<T> callback(), {
  2. bool silent = false,
})
override

Executes an asynchronous read-write transaction.

If silent is true, watchers are not notified about changes in this transaction.

Implementation

@override
Future<T> writeTxn<T>(Future<T> Function() callback, {bool silent = false}) {
  return _spanHelper.asyncWrapInSpan('writeTxn', () {
    return _isar.writeTxn(callback, silent: silent);
  }, dbName: name);
}