debugOverrideScope method
void
debugOverrideScope(
- InjectorScope newScope, {
- ScopeOverridingMode mode = ScopeOverridingMode.replace,
override
Overide the current InjectorScope with an newScope
in the desired
mode
for debuggind or testing purposes.
Implementation
@override
void debugOverrideScope(
InjectorScope newScope, {
ScopeOverridingMode mode = ScopeOverridingMode.replace,
}) {
final newImpl = newScope as InjectorScopeImpl;
final currImpl = _scope ?? (scope as InjectorScopeImpl);
_scope = _overrideScopeForDebug(
currImpl,
newImpl,
mode: mode,
);
_ready = true;
}