createRow

fun <TData> createRow(table: Table<TData>, id: String, original: TData, rowIndex: Int, depth: Int, subRows: List<Row<TData>>?, parentId: String?): Row<TData>

Constructs a Row for the row at rowIndex in the data array, then runs every registered feature's createRow hook so features can attach their own members.

  • id is the row id resolved by _getRowId.

  • original is the source data record.

  • depth is the nesting depth (0 for top-level rows).

  • subRows is the already-constructed child rows when known; otherwise pass null to start with an empty list.

  • parentId is the parent row's id when this row is a sub-row.