RenderStack constructor

RenderStack({
  1. List<RenderBox>? children,
  2. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  3. TextDirection? textDirection,
  4. StackFit fit = StackFit.loose,
  5. Clip clipBehavior = Clip.hardEdge,
})

Creates a stack render object.

By default, the non-positioned children of the stack are aligned by their top left corners.

Implementation

RenderStack({
  List<RenderBox>? children,
  this._alignment = AlignmentDirectional.topStart,
  this._textDirection,
  this._fit = StackFit.loose,
  this._clipBehavior = Clip.hardEdge,
}) {
  addAll(children);
}