open static method
- required String uri,
- StoreKeyMethod? keyMethod,
- String? passKey,
- String? profile,
Opens an existing store.
Throws an AskarStoreException if opening the store fails.
Implementation
static Future<Store> open({
required String uri,
StoreKeyMethod? keyMethod,
String? passKey,
String? profile,
}) async {
try {
final storeHandle =
(await askarStoreOpen(
uri,
keyMethod: keyMethod,
passKey: passKey,
profile: profile,
)).getValueOrException();
return Store(storeHandle, uri);
} catch (e) {
throw AskarStoreException('Failed to open store: $e');
}
}