removeKey method
- required String name,
Removes a key from the store.
Throws an AskarSessionException if the session is closed.
Implementation
Future<void> removeKey({required String name}) async {
_throwOnNullHandle('Cannot remove a key with a closed session');
try {
final callbackResult = await askarSessionRemoveKey(handle!, name);
callbackResult.throwOnError();
} catch (e) {
throw AskarSessionException('Failed to remove key on session: $e');
}
}