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