remove method
Removes a record by category and name.
Throws an AskarSessionException if the session is closed.
Implementation
Future<void> remove({required String category, required String name}) async {
_throwOnNullHandle('Cannot remove with a closed session');
try {
final updateResult = await askarSessionUpdate(
handle!,
EntryOperation.remove,
category,
name,
);
updateResult.errorCode.throwOnError();
} catch (e) {
throw AskarSessionException('Failed to remove on session: $e');
}
}