discontinuedPackage dio_cache_interceptor_objectbox_store has been discontinued and replaced by http_cache_objectbox_store.

isOpen static method

bool isOpen(
  1. String? directoryPath
)

Returns if an open store (i.e. opened before and not yet closed) was found for the given directoryPath.

For Flutter apps, the default directoryPath can be obtained with (await defaultStoreDirectory()).path from objectbox_flutter_libs (or objectbox_sync_flutter_libs).

For Dart Native apps, pass null to use the defaultDirectoryPath.

Implementation

static bool isOpen(String? directoryPath) {
  final path = _safeDirectoryPath(directoryPath);
  return withNativeString(path, C.store_is_open);
}