RenderConstraintsTransformBox constructor Null safety

RenderConstraintsTransformBox(
  1. {required AlignmentGeometry alignment = Alignment.center,
  2. required TextDirection? textDirection,
  3. required BoxConstraintsTransform constraintsTransform,
  4. RenderBox? child,
  5. 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;