cursorToPrimaryKeyList function
Convert an autoAdvance openKeyCursor stream to a list of key, must be auto-advance)
Implementation
Future<List<Object>> cursorToPrimaryKeyList(Stream<Cursor> stream,
[int? offset, int? limit]) =>
_autoCursorStreamToList(
stream, (cursor) => cursor.primaryKey, offset, limit);