of static method
Reads the nearest query client and subscribes to provider changes.
Implementation
static QueryClient of(BuildContext context) {
final inherited = context
.dependOnInheritedWidgetOfExactType<_QueryClientInherited>();
if (inherited == null) {
throw FlutterError(
'No QueryClientProvider found. Add a QueryClientProvider above this '
'widget, pass a client directly, or install QueryModule in App.modules.',
);
}
return inherited.client;
}