RenderSliverConstrainedCrossAxis constructor

RenderSliverConstrainedCrossAxis({
  1. required double maxExtent,
})

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

The maxExtent parameter must be nonnegative.

Implementation

RenderSliverConstrainedCrossAxis({
  required double maxExtent
}) : _maxExtent = maxExtent,
     assert(maxExtent >= 0.0);