hasScopeKey<T> function
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);