dropDefinition method
Implementation
void dropDefinition(BeanDefinition definition) {
List<IndexKey> ids = _instances.entries
.where((element) {
return element.value.beanDefinition == definition;
})
.map((e) => e.key)
.toList();
ids.forEach(_instances.remove);
}