listRecords method
List a range of records in a repository, matching a specific collection. Does not require auth.
https://atprotodart.com/docs/lexicons/com/atproto/repo/listRecords
Implementation
Future<XRPCResponse<ListRecordsOutput>> listRecords({
String? repo,
required NSID collection,
int? limit,
String? cursor,
String? rkeyStart,
String? rkeyEnd,
bool? reverse,
Map<String, String>? $unknown,
Map<String, String>? $headers,
GetClient? $client,
}) async =>
await _ctx.get<ListRecordsOutput>(
ns.comAtprotoRepoListRecords,
headers: $headers,
parameters: {
'repo': repo ?? _ctx.repo,
'collection': collection.toString(),
if (limit != null) 'limit': limit.toString(),
if (cursor != null) 'cursor': cursor,
if (rkeyStart != null) 'rkeyStart': rkeyStart,
if (rkeyEnd != null) 'rkeyEnd': rkeyEnd,
if (reverse != null) 'reverse': reverse.toString(),
...?$unknown,
},
to: const ListRecordsOutputConverter().fromJson,
client: $client,
);