mainAxisExtent property

double? mainAxisExtent
final

The extent of the child in the scrolling axis. If the scroll axis is vertical, this extent is the child's height. If the scroll axis is horizontal, this extent is the child's width.

If non-null, forces the tile to have the given extent in the scroll direction.

Specifying an mainAxisExtent is more efficient than letting the tile determine their own extent because the because it don't use the Intrinsic widget(IntrinsicHeight/IntrinsicWidth) when building.

Implementation

final double? mainAxisExtent;