getServiceFactory<T extends Service<Object?>> method

FutureOr<T> getServiceFactory<T extends Service<Object?>>({
  1. Object? params,
  2. Entity<Object>? groupEntity,
  3. bool traverse = true,
})
inherited

Implementation

FutureOr<T> getServiceFactory<T extends Service>({
  Object? params,
  Entity? groupEntity,
  bool traverse = true,
}) {
  final groupEntity1 = groupEntity ?? focusGroup;
  final value = getServiceFactoryOrNull<T>(
    params: params,
    groupEntity: groupEntity1,
    traverse: traverse,
  );

  if (value == null) {
    throw DependencyNotFoundException(
      type: T,
      groupEntity: groupEntity1,
    );
  }
  return value;
}