discontinuedPackage is_journal has been discontinued and replaced by is_logbook.

add method

ObjectId add(
  1. Uint8List bytes
)

Adds an entry naming bytes, keeps them, and returns their id. Every call adds an entry, so the same bytes added twice have two entries. The entry goes in before the object: a crash between the two leaves an entry naming an object that never arrived, which check reports, never bytes kept with no entry naming them. Throws ObjectNotKept when the entry went in and the object did not.

Implementation

ObjectId add(Uint8List bytes) => _add(bytes).object;