mockNetworkImagesFor<R> function
R
mockNetworkImagesFor<R>(
- R body()
Runs body
in separate Zone with MockHttpClient.
Implementation
R mockNetworkImagesFor<R>(R body()) {
return HttpOverrides.runZoned(
body,
createHttpClient: (_) => createMockImageHttpClient(),
);
}