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.
static R runWithIOOverrides<R>(R body(), IOOverrides overrides, {ZoneSpecification zoneSpecification, Function onError}) { return _asyncRunZoned<R>(body, zoneValues: {_ioOverridesToken: overrides}, zoneSpecification: zoneSpecification, onError: onError); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/IOOverrides/runWithIOOverrides.html