dependenciesWhereTypeK method

Iterable<Dependency<Object>> dependenciesWhereTypeK(
  1. Entity typeEntity
)

Returns all dependencies witin this DIRegistry instance of type typeEntity. Unlike dependenciesWhereType, this will not include subtypes.

Implementation

@pragma('vm:prefer-inline')
Iterable<Dependency> dependenciesWhereTypeK(Entity typeEntity) {
  return reversedDependencies
      .map((e) => e.typeEntity == typeEntity ? e : null)
      .nonNulls;
}