getChild method

DI getChild({
  1. Entity<Object>? groupEntity,
})
inherited

Implementation

DI getChild({
  Entity? groupEntity,
}) {
  final groupEntity1 = groupEntity ?? focusGroup;
  final value = getChildOrNull(
    groupEntity: groupEntity1,
  );

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