RowEntity constructor

RowEntity({
  1. required List<ColumnEntity> columns,
  2. List<CellEntity>? cells,
})

Implementation

RowEntity({
  required List<ColumnEntity> columns,
  List<CellEntity>? cells,
}) {
  if (cells != null) {
    this.cells = cells;
  } else {
    this.cells = columns
        .map((e) => CellEntity(value: null, columnInfo: e))
        .toList(growable: false);
  }
  this._columns = columns;
}