RenderConstraintsTransformBox constructor Null safety
- {required AlignmentGeometry alignment = Alignment.center,
- required TextDirection? textDirection,
- required BoxConstraintsTransform constraintsTransform,
- RenderBox? child,
- Clip clipBehavior = Clip.none}
Creates a RenderBox that sizes itself to the child and modifies the constraints before passing it down to that child.
The alignment
and clipBehavior
must not be null.
Implementation
RenderConstraintsTransformBox({
required super.alignment,
required super.textDirection,
required BoxConstraintsTransform constraintsTransform,
super.child,
Clip clipBehavior = Clip.none,
}) : assert(alignment != null),
assert(clipBehavior != null),
assert(constraintsTransform != null),
_constraintsTransform = constraintsTransform,
_clipBehavior = clipBehavior;