listRecords method

Future<XRPCResponse<Records>> listRecords({
  1. required String repo,
  2. required NSID collection,
  3. int? limit,
  4. bool? reverse,
  5. String? rkeyStart,
  6. String? rkeyEnd,
  7. String? cursor,
  8. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<Records>> listRecords({
  required String repo,
  required core.NSID collection,
  int? limit,
  bool? reverse,
  String? rkeyStart,
  String? rkeyEnd,
  String? cursor,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoRepoListRecords,
      headers: headers,
      parameters: {
        'repo': repo,
        'collection': collection,
        'limit': limit,
        'reverse': reverse,
        'rkeyStart': rkeyStart,
        'rkeyEnd': rkeyEnd,
        'cursor': cursor,
      },
      to: Records.fromJson,
    );