mutate<R> method

Call<R, AsyncValue<T>> mutate<R>(
  1. MutationToken<R> token,
  2. Future<R> body(
    1. Ref<AsyncValue<T>> ref
    ), {
  3. Concurrency concurrency = Concurrency.concurrent,
})

Implementation

Call<R, AsyncValue<T>> mutate<R>(
  MutationToken<R> token,
  Future<R> Function(Ref<AsyncValue<T>> ref) body, {
  Concurrency concurrency = Concurrency.concurrent,
}) => _MutateCall<R, AsyncValue<T>>(
  this,
  token,
  body,
  concurrency: concurrency,
  ensureOwner: (container) => container.read<AsyncValue<T>>(this),
);