shrinkWrapColumns property

bool shrinkWrapColumns
final

Whether the extent of the horizontal scroll view should be determined by the number of columns available.

By default, if the DataGrid’s parent width is infinity, width is set as 300. If shrinkWrapColumns property is true, the width is expanding to view all the columns available in DataGrid.

Shrink wrapping is significantly more expensive than setting the width manually.

See also,

shrinkWrapRows - Whether the extent of the vertical scroll view should be determined by the number of rows available.

Implementation

final bool shrinkWrapColumns;