lookupDependency function

DependencyConfig? lookupDependency(
  1. InjectedDependency iDep,
  2. List<DependencyConfig> allDeps
)

Implementation

DependencyConfig? lookupDependency(
    InjectedDependency iDep, List<DependencyConfig> allDeps) {
  return allDeps.firstWhereOrNull(
    (d) => d.type == iDep.type && d.instanceName == iDep.instanceName,
  );
}