DataTable constructor
DataTable({})
Implementation
DataTable({
required this.columns,
required this.rows,
this.headerStyle,
this.cellStyle,
this.borderColor,
this.borderStyle = DataTableBorderStyle.normal,
super.key,
}) : _headerCells = columns
.map((value) => DataTableCell(value))
.toList(growable: false),
_cellRows = rows
.map(
(row) => row
.map((value) => DataTableCell(value))
.toList(growable: false),
)
.toList(growable: false);