getServiceSingletonWithParams<T extends Service<P>, P extends Object?> method
FutureOr<T>
getServiceSingletonWithParams<
T extends Service<P>, P extends Object?>({ - required P params,
- Entity<Object>? groupEntity,
- bool traverse = true,
})
inherited
Implementation
FutureOr<T>
getServiceSingletonWithParams<T extends Service<P>, P extends Object?>({
required P params,
Entity? groupEntity,
bool traverse = true,
}) {
final groupEntity1 = groupEntity ?? focusGroup;
final value = getServiceSingletonWithParamsOrNull<T, P>(
params: params,
groupEntity: groupEntity1,
traverse: traverse,
);
if (value == null) {
throw DependencyNotFoundException(
type: T,
groupEntity: groupEntity1,
);
}
return value;
}