minIntrinsicWidth method

  1. @override
double minIntrinsicWidth(
  1. Iterable<RenderBox> cells,
  2. double containerWidth
)
override

The smallest width that the column can have.

The cells argument is an iterable that provides all the cells in the table for this column. Walking the cells is by definition O(N), so algorithms that do that should be considered expensive.

The containerWidth argument is the maxWidth of the incoming constraints for the table, and might be infinite.

Implementation

@override
double minIntrinsicWidth(Iterable<RenderBox> cells, double containerWidth) {
  double result = 0.0;
  for (final RenderBox cell in cells) {
    result = math.max(result, cell.getMinIntrinsicWidth(double.infinity));
  }
  return result;
}