clearAllData method
Implementation
@override
Future<JobDone> clearAllData() async {
try {
_ensureStoreInitialized();
final storeDirectory = await _getStoreDirectory();
_store!.close();
_store = null;
Store.removeDbFiles(storeDirectory.path);
if (storeFactory != null) {
_store = await storeFactory!(storeDirectory.path);
}
return const JobDone();
} catch (e) {
throw DatabaseBridgeException(error: e);
}
}