debugOverrideScope abstract method

  1. @visibleForTesting
void debugOverrideScope(
  1. InjectorScope newScope, {
  2. ScopeOverridingMode mode = ScopeOverridingMode.replace,
})

Overide the current InjectorScope with an newScope in the desired mode for debuggind or testing purposes.

Implementation

@visibleForTesting

/// Overide the current [InjectorScope] with an [newScope] in the desired
/// [mode] for debuggind or testing purposes.
void debugOverrideScope(
  InjectorScope newScope, {
  ScopeOverridingMode mode = ScopeOverridingMode.replace,
});