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