getServiceSingletonT method

FutureOr<Service<Object?>> getServiceSingletonT(
  1. Type type, {
  2. Object? params,
  3. Entity<Object>? groupEntity,
  4. bool traverse = true,
})
inherited

Implementation

FutureOr<Service> getServiceSingletonT(
  Type type, {
  Object? params,
  Entity? groupEntity,
  bool traverse = true,
}) {
  final groupEntity1 = groupEntity ?? focusGroup;
  final value = getServiceSingletonOrNullT(
    type,
    params: params,
    groupEntity: groupEntity1,
    traverse: traverse,
  );

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