dispose static method

Future<void> dispose()

Implementation

static Future<void> dispose() async {
  _cache.values.onEach((item) {
    item.close();
  });
  _cache.clear();
}