shrinkWrapRows property

bool shrinkWrapRows
final

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

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

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

See also,

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

Implementation

final bool shrinkWrapRows;