getAsync method
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));
}
Get a single object by its id
. Returns null
if the object does not
exist.
Future<OBJ?> getAsync(ID id) {
return isar.readAsync((isar) => isar.collection<ID, OBJ>().get(id));
}