maybeOf static method
Gets the QueryClient from the BuildContext if available
Implementation
static QueryClient? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<QueryClientProvider>()
?.client;
}
Gets the QueryClient from the BuildContext if available
static QueryClient? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<QueryClientProvider>()
?.client;
}