SliverConstrainedCrossAxis constructor

const SliverConstrainedCrossAxis({
  1. Key? key,
  2. required double maxExtent,
  3. required Widget sliver,
})

Creates a sliver that constrains the cross axis extent of its sliver child.

The maxExtent parameter is required and must be nonnegative.

Implementation

const SliverConstrainedCrossAxis({
  super.key,
  required this.maxExtent,
  required this.sliver,
});