providerHttpClientFactory top-level property

Client Function()? providerHttpClientFactory
getter/setter pair

Optional HTTP-client factory for platform-specific networking.

Hosts can inject this to use a native stack (e.g. CupertinoClient on iOS/macOS) instead of the default dart:io HttpClient. The factory is read every time sharedProviderHttpClient is called so it can be set once at app startup before any provider request runs.

Implementation

http.Client Function()? providerHttpClientFactory;