block method

Future<XRPCResponse<StrongRef>> block({
  1. required String did,
  2. DateTime? createdAt,
  3. Map<String, dynamic> unspecced = core.emptyJson,
})

Implementation

Future<core.XRPCResponse<atp.StrongRef>> block({
  required String did,
  DateTime? createdAt,
  Map<String, dynamic> unspecced = core.emptyJson,
}) async =>
    await _ctx.atproto.repo.createRecord(
      collection: ns.appBskyGraphBlock,
      record: {
        'subject': did,
        'createdAt': _ctx.toUtcIso8601String(createdAt),
        ...unspecced,
      },
    );