containsType<T> method

bool containsType<T>()

Checks if Type is in Factory. Looks to store and initializers.

This function do not check subtypes!

Returns true if Type is found.

Implementation

bool containsType<T>() {
  for (final item in _items.values) {
    if (item.runtimeType == T) {
      return true;
    }
  }

  return _factory.containsKey(T);
}