dispose method

void dispose()

Implementation

void dispose() {
  _cache.dispose();
  _instances.remove(this);
}