QueryClientProvider.value constructor

const QueryClientProvider.value({
  1. required QueryClient client,
  2. required Widget child,
  3. Key? key,
})

Borrows client without clearing its caches on replacement or disposal.

The caller retains ownership. Passing a previously owned client to this constructor transfers cleanup responsibility to the caller without clearing the instance. Use of to read the mounted provider's client.

Implementation

const QueryClientProvider.value({
  required QueryClient client,
  required this.child,
  super.key,
}) : _value = client,
     _create = null;