mockNetworkImagesFor<R> function

R mockNetworkImagesFor<R>(
  1. R body()
)

Runs body in separate Zone with MockHttpClient.

Implementation

R mockNetworkImagesFor<R>(R body()) {
  return HttpOverrides.runZoned(
    body,
    createHttpClient: (_) => createMockImageHttpClient(),
  );
}