RenderUnconstrainedBox constructor Null safety
- @Deprecated('Use RenderConstraintsTransformBox instead. ' 'This feature was deprecated after v2.1.0-11.0.pre.')
- {required AlignmentGeometry alignment = Alignment.center,
- required TextDirection? textDirection,
- Axis? constrainedAxis,
- RenderBox? child,
- 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),
);