collectOptionalDependencies method
Collects all optional dependencies of this service and its conditions.
Implementation
Iterable<InjectorKey> collectOptionalDependencies() sync* {
yield* optionalDependencies;
for (var condition in conditions) {
yield* condition.optionalDependencies;
}
}