injectFromAncestryOptional abstract method
Injects and returns an object representing token from ancestors.
Unlike inject, this only checks instances registered with any ancestry
injector, not this injector. This is equivalent to the constructor
parameters annotated with @SkipSelf.
Implementation
@protected
Object? injectFromAncestryOptional(
Object token, [
Object? orElse = throwIfNotFound,
]);