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