withContext<T> function
Runs fn
in the specified context
.
Implementation
T withContext<T>(Context context, T Function() fn) {
return runZoned(() => fn(), zoneValues: {#z3_context: context});
}
Runs fn
in the specified context
.
T withContext<T>(Context context, T Function() fn) {
return runZoned(() => fn(), zoneValues: {#z3_context: context});
}