close method

Future<bool> close({
  1. bool remove = false,
})

Closes and frees the store instance.

Throws an AskarStoreException if closing the store fails.

Implementation

Future<bool> close({bool remove = false}) async {
  _opener = null;

  await handle.close();

  return remove ? await Store.remove(uri) : false;
}