mutate<R> method

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

Runs body as a tracked mutation with the given token.

Implementation

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