isSolvable method

bool isSolvable(
  1. Injector injector,
  2. List<InjectorKey> futurePromises
)

Verifies if all required dependencies are either already provided by the injector or could still become available as promised by futurePromises.

Implementation

bool isSolvable(Injector injector, List<InjectorKey> futurePromises) =>
    isSatisfied(injector) ||
    collectDependencies().any((element) => futurePromises.contains(element));