withFileSystem<T> function
T
withFileSystem<T>(
- FileSystem fs,
- T callback()
Runs callback with the given value for the top-level fs field.
This is Zone-scoped, so asynchronous callbacks spawned within callback
will also use the new value for fs.
Implementation
T withFileSystem<T>(FileSystem fs, T Function() callback) =>
runZoned(callback, zoneValues: {_fsKey: fs});