getDependencies<T extends Object> method
Iterable<Dependency<T> >
getDependencies<T extends Object>({
- Entity groupEntity = const DefaultEntity(),
Returns an iterable of all dependencies of type T
within the specified groupEntity
.
This method considers exact type matches, not subtypes.
Implementation
@pragma('vm:prefer-inline')
Iterable<Dependency<T>> getDependencies<T extends Object>({
Entity groupEntity = const DefaultEntity(),
}) {
return _state[groupEntity]?.values.whereType<Dependency<T>>() ?? [];
}