RenderRotatedBox constructor Null safety

RenderRotatedBox(
  1. {required int quarterTurns,
  2. RenderBox? child}
)

Creates a rotated render box.

The quarterTurns argument must not be null.

Implementation

RenderRotatedBox({
  required int quarterTurns,
  RenderBox? child,
}) : assert(quarterTurns != null),
     _quarterTurns = quarterTurns {
  this.child = child;
}