getServiceSingletonSync<T extends Service<Object?> > method
T
getServiceSingletonSync<T extends Service<Object?> >({})
inherited
Implementation
T getServiceSingletonSync<T extends Service>({
Object? params,
Entity? groupEntity,
bool traverse = true,
bool throwIfAsync = false,
}) {
final value = getServiceSingleton<T>(
params: params,
groupEntity: groupEntity,
traverse: traverse,
);
if (value is Future) {
throw DependencyIsFutureException(
type: T,
groupEntity: groupEntity,
);
}
return value;
}