1. override
double getMinIntrinsicWidth(double height, int childCount)

Returns the minimum width that this grid could be without failing to paint its contents within itself.

Override this to provide a more efficient or more correct solution. The default implementation actually instantiates a grid specification and measures the grid at the given height and child count.

For more details on implementing this method, see RenderBox.computeMinIntrinsicWidth.

Source

@override
double getMinIntrinsicWidth(double height, int childCount) {
  // TODO(ianh): Strictly, this should examine the children.
  return 0.0;
}