run<R> method
R
run<R>(
- R callback()
Executes the callback within a Zone where this scope is active.
Any calls to static methods like Ls.find or Ls.put inside the
callback will automatically target this scope.
Returns the result of the callback.
Implementation
R run<R>(R Function() callback) {
return runZoned(
callback,
zoneValues: {Ls.zoneScopeKey: this},
);
}