RenderIntrinsicWidth constructor Null safety

RenderIntrinsicWidth(
  1. {double? stepWidth,
  2. double? stepHeight,
  3. RenderBox? child}
)

Creates a render object that sizes itself to its child's intrinsic width.

If stepWidth is non-null it must be > 0.0. Similarly If stepHeight is non-null it must be > 0.0.

Implementation

RenderIntrinsicWidth({
  double? stepWidth,
  double? stepHeight,
  RenderBox? child,
}) : assert(stepWidth == null || stepWidth > 0.0),
     assert(stepHeight == null || stepHeight > 0.0),
     _stepWidth = stepWidth,
     _stepHeight = stepHeight,
     super(child);