RenderStack constructor

RenderStack({
  1. StackFit fit = StackFit.loose,
  2. Alignment alignment = Alignment.topLeft,
  3. bool clip = true,
  4. List<RenderBox>? children,
})

Overlays children using whole-cell positioning and optional clipping.

Implementation

RenderStack({
  StackFit fit = StackFit.loose,
  Alignment alignment = Alignment.topLeft,
  bool clip = true,
  List<RenderBox>? children,
}) : _fit = fit,
     _alignment = alignment,
     _clip = clip {
  if (children != null) {
    for (final child in children) {
      add(child);
    }
  }
}