create method

Future<XRPCResponse<RepoCreateRecordOutput>> create({
  1. required String subject,
  2. DateTime? createdAt,
  3. String? rkey,
  4. bool? validate,
  5. String? swapCommit,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoCreateRecordOutput>> create({
  required String subject,
  DateTime? createdAt,
  String? rkey,
  bool? validate,
  String? swapCommit,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoRepoCreateRecord(
  repo: _ctx.repo,
  collection: ids.appBskyGraphFollow,
  rkey: rkey,
  validate: validate,
  record: {...?$unknown, 'subject': subject, 'createdAt': iso8601(createdAt)},
  swapCommit: swapCommit,
  $ctx: _ctx,
  $headers: $headers,
);