crossAxisExtent property
final
The amount of space allocated to the cross axis.
This value will be typically null unless it is different from SliverConstraints.crossAxisExtent. If null, then the cross axis extent of the sliver is assumed to be the same as the SliverConstraints.crossAxisExtent. This is because slivers typically consume all of the extent that is available in the cross axis.
See also:
- SliverConstrainedCrossAxis for an example of a sliver which takes up a smaller cross axis extent than the provided constraint.
- SliverCrossAxisGroup for an example of a sliver which makes use of this crossAxisExtent to lay out their children.
Implementation
final double? crossAxisExtent;