insertLog method

Future<void> insertLog(
  1. LogEntry entry
)

Implementation

Future<void> insertLog(LogEntry entry) async {
  final txn = _db.transaction(_storeName, 'readwrite');
  final store = txn.objectStore(_storeName);
  await store.add(entry.toJson());
  await txn.completed;
}