RenderAligningShiftedBox constructor Null safety
- {AlignmentGeometry alignment = Alignment.center,
- required TextDirection? textDirection,
- RenderBox? child}
Initializes member variables for subclasses.
The alignment
argument must not be null.
The textDirection
must be non-null if the alignment
is
direction-sensitive.
Implementation
RenderAligningShiftedBox({
AlignmentGeometry alignment = Alignment.center,
required TextDirection? textDirection,
RenderBox? child,
}) : assert(alignment != null),
_alignment = alignment,
_textDirection = textDirection,
super(child);