UTableData.empty constructor

UTableData.empty({
  1. int rows = 3,
  2. int columns = 3,
})

Creates an empty table of rows x columns.

Implementation

factory UTableData.empty({int rows = 3, int columns = 3}) => UTableData(
  rows: <List<String>>[
    for (int r = 0; r < rows; r++) <String>[for (int c = 0; c < columns; c++) ""],
  ],
);