maybeOf static method

QueryClient? maybeOf(
  1. BuildContext context
)

Gets the QueryClient from the BuildContext if available

Implementation

static QueryClient? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<QueryClientProvider>()
      ?.client;
}