reset method

Future<void> reset()

Destroys all local records - specifically, memoryCache and sqliteProvider's data sources.

Implementation

Future<void> reset() async {
  await sqliteProvider.resetDb();
  memoryCacheProvider.reset();
  for (final subscription in subscriptions.values) {
    for (final controller in subscription.values) {
      await controller.close();
    }
  }
  subscriptions.clear();
}