getServiceFactoryWithParamsSyncOrNull<T extends Service<P> , P extends Object?> method
T?
getServiceFactoryWithParamsSyncOrNull<T extends Service<P> , P extends Object?>({})
inherited
Implementation
T? getServiceFactoryWithParamsSyncOrNull<T extends Service<P>,
P extends Object?>({
required P params,
Entity? groupEntity,
bool traverse = true,
bool throwIfAsync = false,
}) {
final value = getServiceFactoryWithParamsOrNull<T, P>(
params: params,
groupEntity: groupEntity,
traverse: traverse,
);
if (throwIfAsync && value is Future) {
throw DependencyIsFutureException(
type: T,
groupEntity: groupEntity,
);
}
return value?.asSyncOrNull;
}