findRecord method
Future<SdbIndexRecordSnapshot<K, V, I> ?>
findRecord(
- SdbClient client, {
- SdbBoundaries<
I> ? boundaries, - SdbFilter? filter,
- int? offset,
- bool? descending,
Find records.
Implementation
Future<SdbIndexRecordSnapshot<K, V, I>?> findRecord(
SdbClient client, {
SdbBoundaries<I>? boundaries,
/// Optional filter, performed in memory
SdbFilter? filter,
int? offset,
/// Optional descending order
bool? descending,
}) async {
var records = await findRecords(
client,
boundaries: boundaries,
filter: filter,
offset: offset,
limit: 1,
descending: descending,
);
return records.firstOrNull;
}