reset method

Future<void> reset([
  1. bool recreate = true
])

Resets the ScopedDatabase and closes this ScopedDriftProvider.

Implementation

Future<void> reset([bool recreate = true]) async {
  await _completeAllOperations((db) async {
    await _caught(db?.reset(recreate));
    this.db = db;
  });
}