contains method
Checks if key/type/object is in Factory.
Implementation
bool contains(dynamic value) {
if (containsKey(value)) {
return true;
}
if (value is Type) {
//TODO: subtype
if (_items.values.any((item) => item.runtimeType == value) ||
_factory.keys.any((item) => item.runtimeType == value)) {
return true;
}
}
return _items.values.contains(value);
}