popScope static method
void
popScope()
Removes the current dependency scope from the stack.
Throws an StateError if there is no active scope to remove.
Implementation
static void popScope() {
if (_scopes.isEmpty) {
throw StateError("There is no scope to pop");
}
_scopes.removeLast().dispose();
}