get method

T? get(
  1. int id
)

Retrieves the stored object with the ID id from this box's database. Returns null if an object with the given ID doesn't exist.

Implementation

T? get(int id) => InternalStoreAccess.runInTransaction(
    _store, TxMode.read, (Transaction tx) => tx.cursor(_entity).get(id));