minIntrinsicWidth method Null safety

  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) {
  if (!containerWidth.isFinite)
    return 0.0;
  return value * containerWidth;
}