Thrown when trying to retrieve a dependency by Key
from Injector
, but
the Injector
does not have a Provider for Key
.
class A { A(B b); }
expect(() => Injector.resolveAndCreate(A
), throws);
- Inheritance
- Object
- Error
- BaseException
- AbstractProviderError
- NoProviderError
Constructors
- NoProviderError(ReflectiveInjector injector, ReflectiveKey key)
Properties
- constructResolvingMessage → Function
-
read / write, inherited
- context → dynamic
-
read-only, inherited
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - injectors → List<ReflectiveInjector>
-
read / write, inherited
- keys → List<ReflectiveKey>
-
read / write, inherited
- message → String
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - stackTrace → StackTrace
-
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addKey(
ReflectiveInjector injector, ReflectiveKey key) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited