getFactorySyncOrNullT method
Implementation
Object? getFactorySyncOrNullT(
Type type, {
Entity? groupEntity,
bool traverse = true,
bool throwIfAsync = false,
}) {
final value = getFactoryOrNullT(
type,
groupEntity: groupEntity,
traverse: traverse,
);
if (throwIfAsync && value is Future) {
throw DependencyIsFutureException(
type: type,
groupEntity: groupEntity,
);
}
return value?.asSyncOrNull;
}