debugOverrideScope method

  1. @override
void debugOverrideScope(
  1. InjectorScope newScope, {
  2. 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,
  );
}