close method
Close the store
Should be called when completely done with the store. In isolate mode, this also shuts down the background isolate.
Implementation
Future<void> close() async {
if (_useIsolate) {
await _isolateService?.close();
} else {
await _dbHelper.close();
}
_isInitialized = false;
}