DependencyConfig constructor

const DependencyConfig({
  1. required ImportableType type,
  2. required ImportableType typeImplementation,
  3. required InjectionModuleConfig injectionModuleConfig,
  4. @Default(DependencyType.factory) DependencyType dependencyType,
  5. @Default([]) List<InjectedDependency> dependencies,
  6. @Default([]) List<String> environments,
  7. @Default(false) bool isAsync,
  8. @Default(false) bool preResolve,
  9. String? instanceName,
  10. String? constructorName,
  11. ExternalModuleConfig? externalModuleConfig,
  12. DisposeFunctionConfig? disposeFunctionConfig,
})

Implementation

const factory DependencyConfig({
  required ImportableType type,
  required ImportableType typeImplementation,
  required InjectionModuleConfig injectionModuleConfig,
  @Default(DependencyType.factory) DependencyType dependencyType,
  @Default([]) List<InjectedDependency> dependencies,
  @Default([]) List<String> environments,
  @Default(false) bool isAsync,
  @Default(false) bool preResolve,
  String? instanceName,
  String? constructorName,
  ExternalModuleConfig? externalModuleConfig,
  DisposeFunctionConfig? disposeFunctionConfig,
}) = _DependencyConfig;