StackRenderer constructor

StackRenderer({
  1. required BoxModel model,
  2. List<RenderBox>? children,
  3. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  4. TextDirection? textDirection,
  5. StackFit fit = StackFit.loose,
  6. Clip clipBehavior = Clip.none,
})

Creates a stack render object.

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

Implementation

StackRenderer({
  required this.model,
  List<RenderBox>? children,
  AlignmentGeometry alignment = AlignmentDirectional.topStart,
  TextDirection? textDirection,
  StackFit fit = StackFit.loose,
  Clip clipBehavior = Clip.none,
})  : _alignment = alignment,
      _textDirection = textDirection,
      _fit = fit,
      _clipBehavior = clipBehavior {
  addAll(children);
}