ClassInstanceProvider<T> class
A InstanceProvider that calls class constructors
- Inheritance
-
- Object
- AbstractInstanceProvider<
T> - InstanceProvider<
T> - ClassInstanceProvider
Constructors
- ClassInstanceProvider(Type type, {bool eager = true, dynamic replace = false, String scope = 'singleton'})
Properties
- descriptor → TypeDescriptor
-
final
- eager → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → Type
-
no setterinherited
-
lifecycleMethods
↔ List<
List< MethodCall> ?> -
getter/setter pairinherited
- location → String
-
no setteroverride
- replace → bool
-
finalinherited
-
resolvers
↔ List<
ParameterResolver> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String
-
no setterinherited
- type → Type
-
no setterinherited
Methods
-
create(
Environment environment, [List args = const []]) → T -
Creates an instance of the type using the environment
override
-
getDependencies(
Environment environment) → (List< ParameterResolver> , Set<Type> , int) -
Returns the list of dependency types and the number of constructor parameters
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
report(
) → String -
override
-
resolve(
ResolveContext context) → void -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited