getSingletonSync<T extends Object> method
T
getSingletonSync<T extends Object>({})
inherited
Implementation
T getSingletonSync<T extends Object>({
Entity? groupEntity,
bool traverse = true,
}) {
final value = getSingleton<T>(
groupEntity: groupEntity,
traverse: traverse,
);
if (value is Future) {
throw DependencyIsFutureException(
type: T,
groupEntity: groupEntity,
);
} else {
return value;
}
}