appendHiddenRange method

Future<String> appendHiddenRange({
  1. required List<String> recordIds,
})

Appends a structured-compaction hide event (issue #148 pass 1): the records in recordIds keep living in the file but project as one-line markers. Ids must be stable record ids of records already on the append path — never positions.

Implementation

Future<String> appendHiddenRange({required List<String> recordIds}) {
  return _append(
    (id, parentId) => HiddenRangeRecord(
      id: id,
      parentId: parentId,
      timestamp: DateTime.now(),
      recordIds: recordIds,
    ),
  );
}