DependencyConfig.factory constructor
DependencyConfig.factory(})
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(),
);
}