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