DependencyConfig class
Constructors
-
DependencyConfig({required ImportableType type, required ImportableType typeImpl, int injectableType = InjectableType.factory, List<
InjectedDependency> dependencies = const [], String? instanceName, bool? signalsReady, List<String> environments = const [], String? constructorName = '', bool isAsync = false, List<ImportableType> dependsOn = const [], bool preResolve = false, bool canBeConst = false, ModuleConfig? moduleConfig, DisposeFunctionConfig? disposeFunction, int orderPosition = 0, String? scope, bool postConstructReturnsSelf = false, String? postConstruct}) -
DependencyConfig.factory(String type, {List<
String> deps = const [], List<String> envs = const [], int order = 0}) -
factory
- DependencyConfig.fromJson(Map json)
-
factory
-
DependencyConfig.singleton(String type, {List<
String> deps = const [], int order = 0}) -
factory
Properties
- canBeConst → bool
-
final
- constructorName → String?
-
final
-
dependencies
→ List<
InjectedDependency> -
final
-
dependsOn
→ List<
ImportableType> -
final
- disposeFunction → DisposeFunctionConfig?
-
final
-
environments
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- identityHash → int
-
latefinal
- injectableType → int
-
final
- instanceName → String?
-
final
- isAsync → bool
-
final
- isFromModule → bool
-
no setter
- moduleConfig → ModuleConfig?
-
final
-
namedDependencies
→ List<
InjectedDependency> -
no setter
- orderPosition → int
-
final
-
positionalDependencies
→ List<
InjectedDependency> -
no setter
- postConstruct → String?
-
final
- postConstructReturnsSelf → bool
-
final
- preResolve → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String?
-
final
- signalsReady → bool?
-
final
- type → ImportableType
-
final
- typeImpl → ImportableType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override