dropDefinition method

void dropDefinition(
  1. BeanDefinition definition
)

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);
}