run<T> static method
Implementation
static T run<T>(ComponentRuntime runtime, T Function() callback) {
final prev = _current;
_current = runtime;
try {
return callback();
} finally {
_current = prev;
}
}
static T run<T>(ComponentRuntime runtime, T Function() callback) {
final prev = _current;
_current = runtime;
try {
return callback();
} finally {
_current = prev;
}
}