width property

double get width

Gets the total width of the table.

Calculates the sum of all column widths to determine the table's total horizontal extent. This is the natural width the table would occupy without any constraints.

Returns total table width in logical pixels as a double.

Implementation

double get width {
  return columnWidths.fold(0, (a, b) => a + b);
}