writeAsyncWith<T, P> abstract method

Future<T> writeAsyncWith<T, P>(
  1. P param,
  2. T callback(
    1. Isar isar,
    2. P param
    ), {
  3. String? debugName,
})

Create an asynchronous read-write transaction and pass a parameter to the callback.

The code inside the callback will be executed in a separate isolate.

Check out the write method for more information.

Implementation

Future<T> writeAsyncWith<T, P>(
  P param,
  T Function(Isar isar, P param) callback, {
  String? debugName,
});