getAsync method

Future<OBJ?> getAsync(
  1. ID id
)

Get a single object by its id. Returns null if the object does not exist.

Implementation

Future<OBJ?> getAsync(ID id) {
  return isar.readAsync((isar) => isar.collection<ID, OBJ>().get(id));
}