loadEvent method
Implementation
@override
Future<Nip01Event?> loadEvent(String id) async {
await dbRdy;
final eventBox = _objectBox.store.box<DbNip01Event>();
final existingEvent =
eventBox.query(DbNip01Event_.nostrId.equals(id)).build().findFirst();
if (existingEvent == null) {
return null;
}
return existingEvent.toNdk();
}