QueryClientProvider.value constructor
const
QueryClientProvider.value({
- required QueryClient client,
- required Widget child,
- 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;