has<T> method

bool has<T>()

Returns true if this container has dependency resolver for type [T}. If you want to check it for the whole containers tree, use hasInTree instead.

Implementation

bool has<T>() => _resolvers.containsKey(T);