containsDependency<T extends Object> method
Checks if any dependency of type T
or subtypes exists under the
specified groupEntity
Returns true
if it does and false
if it doesn't.
Implementation
@pragma('vm:prefer-inline')
bool containsDependency<T extends Object>({
Entity groupEntity = const DefaultEntity(),
}) {
return _state[groupEntity]?.values.any((e) => e.value is Resolvable<T>) ==
true;
}