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