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