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;
_scope = _overrideScopeForDebug(
_scope!,
newImpl,
mode: mode,
);
}