setModelsDispatchClientForTesting function

  1. @visibleForTesting
void setModelsDispatchClientForTesting(
  1. Client? client
)

Test seam — routes every dialect's HTTP through client so widget tests can pump the production dispatch path (no ModelsEndpointFetcher override, real routing) without network. Null restores the per-dialect default. Not part of the public API.

Implementation

@visibleForTesting
void setModelsDispatchClientForTesting(http.Client? client) {
  _dispatchHttpClientForTesting = client;
}