asCurrent<T> method
T
asCurrent<T>(
- T body()
Runs body
with this as Configuration.current.
This is zone-scoped, so this will be the current configuration in any
asynchronous callbacks transitively created by body
.
Implementation
T asCurrent<T>(T Function() body) =>
runZoned(body, zoneValues: {_currentKey: this});