runWithIOOverrides<R> static method
- R body(),
- IOOverrides 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
IOOverrides.
Implementation
static R runWithIOOverrides<R>(R body(), IOOverrides overrides) {
return dart_async.runZoned<R>(
body,
zoneValues: {_ioOverridesToken: overrides},
);
}