create method

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

Implementation

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