RenderUnconstrainedBox constructor Null safety

  1. @Deprecated('Use RenderConstraintsTransformBox instead. ' 'This feature was deprecated after v2.1.0-11.0.pre.')
RenderUnconstrainedBox(
  1. {required AlignmentGeometry alignment = Alignment.center,
  2. required TextDirection? textDirection,
  3. Axis? constrainedAxis,
  4. RenderBox? child,
  5. Clip clipBehavior = Clip.none}
)

Create a render object that sizes itself to the child but does not pass the constraints down to that child.

The alignment and clipBehavior must not be null.

Implementation

@Deprecated(
  'Use RenderConstraintsTransformBox instead. '
  'This feature was deprecated after v2.1.0-11.0.pre.',
)
RenderUnconstrainedBox({
  required super.alignment,
  required super.textDirection,
  Axis? constrainedAxis,
  super.child,
  super.clipBehavior,
}) : assert(alignment != null),
     assert(clipBehavior != null),
     _constrainedAxis = constrainedAxis,
     super(
       constraintsTransform: _convertAxis(constrainedAxis),
     );