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