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, ModuleConfig? moduleConfig, DisposeFunctionConfig? disposeFunction})
const
DependencyConfig.factory(String type, {List<String> deps = const [], List<String> envs = const []})
factory
DependencyConfig.fromJson(Map json)
factory
DependencyConfig.singleton(String type, {List<String> deps = const []})
factory

Properties

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
injectableType int
final
instanceName String?
final
isAsync bool
final
isFromModule bool
no setter
moduleConfig ModuleConfig?
final
namedDependencies List<InjectedDependency>
no setter
positionalDependencies List<InjectedDependency>
no setter
preResolve bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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