runWithHttpOverrides<R> static method
- R body(),
- HttpOverrides overrides
Runs body
in a fresh Zone using the overrides found in overrides
.
Note that overrides
should be an instance of a class that extends
HttpOverrides.
Implementation
static R runWithHttpOverrides<R>(R Function() body, HttpOverrides overrides) {
return dart_async.runZoned<R>(
body,
zoneValues: {_httpOverridesToken: overrides},
);
}