addRow method Null safety

void addRow(
  1. List<RenderBox?> cells
)

Adds a row to the end of the table.

The newly added children must not already have parents.

Implementation

void addRow(List<RenderBox?> cells) {
  assert(cells.length == columns);
  assert(_children.length == rows * columns);
  _rows += 1;
  _children.addAll(cells);
  for (final RenderBox? cell in cells) {
    if (cell != null) {
      adoptChild(cell);
    }
  }
  markNeedsLayout();
}