computeMaxIntrinsicWidth method
A TABLE THAT STATES ITS WIDTH IS THAT WIDE AT ITS WIDEST TOO: what
its columns would take at their max-content is shared out inside the
width (css-tables-3 3.9.3), and only its min-content widens it (CSS
2.1 17.5.2). Answered as its grid's max-content, a width: 500px
table of <col>s of 100 beside a column of 238 came out 538 in the
ShrinkWidth round it, the grid 500 inside
(fixtures/table-col-width-squeezed p1).
Implementation
@override
double computeMaxIntrinsicWidth(double height) {
final columns = _columnCount;
final cols = _measure(columns);
final grid = width != null ? cols.fold(0.0, (a, c) => a + c.min) : cols.fold(0.0, (a, c) => a + c.max);
return _stated(grid + spacing.width * (columns + 1));
}