hasScopeKey<T> function

bool hasScopeKey<T>(
  1. ScopeKey<T> key
)

Returns true if key is contained within the current Scope or an ancestor Scope

For nullable types even if the value is null hasScopeKey will return true if a value was injected.

Implementation

bool hasScopeKey<T>(ScopeKey<T> key) => _hasScopeKey(key);