hasInTree<T> method

bool hasInTree<T>()

Returns true if the container or it's parents contains dependency resolver for type T. If you want to check it only for this container, use has instead.

Implementation

bool hasInTree<T>() =>
    has<T>() ||
    (_parent?.hasInTree<T>() ?? false);