DependencyConfig.factory constructor

DependencyConfig.factory(
  1. String type, {
  2. List<String> deps = const [],
  3. List<String> envs = const [],
  4. int order = 0,
})

Implementation

factory DependencyConfig.factory(String type,
    {List<String> deps = const [],
    List<String> envs = const [],
    int order = 0}) {
  return DependencyConfig(
    type: ImportableType(name: type),
    typeImpl: ImportableType(name: type),
    environments: envs,
    orderPosition: order,
    dependencies: deps
        .map(
          (e) => InjectedDependency(
            type: ImportableType(name: e),
            paramName: e.toLowerCase(),
          ),
        )
        .toList(),
  );
}