An internal resolved representation of a Provider used by the Injector
.
It is usually created automatically by Injector.resolveAndCreate
.
It can be created manually, as follows:
Example:
var resolvedProviders = Injector.resolve([provide('message', useValue: 'Hello')]);
var injector = Injector.fromResolvedProviders(resolvedProviders);
expect(injector.get('message')).toEqual('Hello');
Constructors
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - key → ReflectiveKey
-
A key, usually a
Type
.read / write - multiProvider → bool
-
Indicates if the provider is a multi-provider or a regular provider.
read / write - resolvedFactories → List<ResolvedReflectiveFactory>
-
Return instances of objects for the given key.
read / write - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
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