saveEvent method

  1. @override
Future<void> saveEvent(
  1. Nip01Event event
)
override

Implementation

@override
Future<void> saveEvent(Nip01Event event) async {
  final startTime = DateTime.now();
  isar_ds.isar.write((isar) {
    isar.dbEvents.put(DbEvent.fromNip01Event(event));
  });
  final endTime = DateTime.now();
  final duration = endTime.difference(startTime);
  Logger.log.t("SAVED Event took ${duration.inMilliseconds} ms");
}