DependencyDescriptor constructor

DependencyDescriptor({
  1. required Source source,
  2. required String podName,
  3. required String propertyName,
  4. required Class type,
  5. List<ArgumentValue>? args,
  6. Class? component,
  7. Class? key,
  8. bool isEager = false,
  9. bool isRequired = true,
  10. String? lookup,
})

Describes a dependency required by a component or pod.

This class is used to specify the name of the dependency, an optional qualifier (to disambiguate multiple pods of the same type), and whether the dependency is required.

Example

final descriptor = DependencyDesign(
  "databaseService",
);

print(descriptor.name); // "databaseService"

Implementation

DependencyDescriptor({
  required this.source,
  required this.podName,
  required this.propertyName,
  required this.type,
  this.args,
  this.component,
  this.key,
  this.isEager = false,
  this.isRequired = true,
  this.lookup,
});