findFirst method
Find a single record.
Returns null if not found.
Implementation
Future<RecordSnapshot<K, V>?> findFirst(DatabaseClient databaseClient,
{Finder? finder}) async {
final client = getClient(databaseClient);
var record = await client
.getSembastStore(this)
.txnFindRecord(client.sembastTransaction, finder as SembastFinder?);
if (record == null) {
return null;
} else {
return SembastRecordSnapshot<K, V>.fromRecord(record);
}
}